diff --git a/imgutil/imgutil b/imgutil/imgutil index 606eea90..a553abbb 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -531,6 +531,13 @@ class OsHandler(object): else: ignoremode = False continue + if line.startswith(r'%onlyversions '): + vers = line[len(r'%onlyversions '):].split() + if self.version not in vers: + ignoremode = True + else: + ignoremode = False + continue if not ignoremode: pkgs += line + ' ' pkgs = pkgs.split() diff --git a/imgutil/ubuntu/pkglist b/imgutil/ubuntu/pkglist index 82c64523..917b3ec3 100644 --- a/imgutil/ubuntu/pkglist +++ b/imgutil/ubuntu/pkglist @@ -42,6 +42,8 @@ libmaxminddb0 libuv1 dbus-user-session tpm2-tools +%onlyversions 26.04 +libfuse2t64 %onlyarch x86_64 grub-efi-amd64-bin %onlyarch aarch64 diff --git a/imgutil/ubuntu26.04 b/imgutil/ubuntu26.04 new file mode 120000 index 00000000..7d13753d --- /dev/null +++ b/imgutil/ubuntu26.04 @@ -0,0 +1 @@ +ubuntu \ No newline at end of file