vmTools: add in Amazon Linux 2023

This commit is contained in:
Philip Taron
2026-01-05 09:57:14 -08:00
parent 98b0461681
commit 921c93ffbc
3 changed files with 33 additions and 1 deletions
+25
View File
@@ -836,6 +836,7 @@ let
{
nativeBuildInputs = [
buildPackages.perl
buildPackages.perlPackages.URI
buildPackages.perlPackages.XMLSimple
buildPackages.zstd
];
@@ -1244,6 +1245,24 @@ let
unifiedSystemDir = true;
};
amazon2023x86_64 = {
name = "amazon-2023-x86_64";
fullName = "Amazon Linux 2023 (x86_64)";
packagesList = fetchurl {
url = "https://cdn.amazonlinux.com/al2023/core/guids/6fa961924efb4835a7e8de43c89726dca28a5cf5906f891262d8f78a31ea3aaf/x86_64/repodata/primary.xml.gz";
hash = "sha256-Ezdsc8a2aOIbyXvQ/nyanWe1fl089VgtfegaPcu2oo4=";
};
urlPrefix = "https://cdn.amazonlinux.com/al2023/core/guids/6fa961924efb4835a7e8de43c89726dca28a5cf5906f891262d8f78a31ea3aaf/x86_64";
archs = [
"noarch"
"x86_64"
];
packages = commonAmazonPackages ++ [
"annobin-plugin-gcc"
];
unifiedSystemDir = true;
};
};
# The set of supported Dpkg-based distributions.
@@ -1503,6 +1522,12 @@ let
"pkgconf"
];
commonAmazonPackages = baseRHELFamilyPackages ++ [
"gcc-plugin-annobin"
"pkgconf"
"system-release"
];
# Common packages for openSUSE images.
commonOpenSUSEPackages = [
"aaa_base"
+7 -1
View File
@@ -1,6 +1,7 @@
use strict;
use XML::Simple;
use List::Util qw(min);
use URI::Escape;
my @packagesFiles = ();
my @urlPrefixes = ();
@@ -174,8 +175,13 @@ print "[\n\n";
foreach my $pkgName (@needed) {
my $pkg = $pkgs{$pkgName};
# URL-encode each path segment separately to handle special characters like '+'
my $href = $pkg->{location}->{href};
my @segments = split('/', $href);
my @encoded_segments = map { uri_escape($_) } @segments;
my $encoded_href = join('/', @encoded_segments);
print " (fetchurl {\n";
print " url = $pkg->{urlPrefix}/$pkg->{location}->{href};\n";
print " url = \"$pkg->{urlPrefix}/$encoded_href\";\n";
if ($pkg->{checksum}->{type} eq "sha") {
print " sha1 = \"$pkg->{checksum}->{content}\";\n";
} elsif ($pkg->{checksum}->{type} eq "sha256") {
+1
View File
@@ -55,5 +55,6 @@ in
testAlma9Image = makeImageTestScript diskImages.alma9x86_64;
testAlma10Image = makeImageTestScript diskImages.alma10x86_64;
testOracle9Image = makeImageTestScript diskImages.oracle9x86_64;
testAmazon2023Image = makeImageTestScript diskImages.amazon2023x86_64;
testUbuntuImage = makeImageTestScript diskImages.ubuntu2404x86_64;
}