]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
initrd: shadow-utils removal is only necessary on old Fedora
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 May 2025 12:23:05 +0000 (14:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 May 2025 09:58:04 +0000 (11:58 +0200)
On rawhide, we get:
"No packages to remove for argument: shadow-utils"

mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora-stable.conf [new file with mode: 0644]
mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora.conf

diff --git a/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora-stable.conf b/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora-stable.conf
new file mode 100644 (file)
index 0000000..acc547d
--- /dev/null
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=fedora
+Release=|40
+Release=|41
+Release=|42
+
+[Content]
+RemovePackages=
+        # Various packages pull in shadow-utils to create users, we can remove it afterwards
+        shadow-utils
index 001efec996da536e008fa6e2e9989c26cb10fe6e..a8b30f06fb0d7e3377bf198a02c0369e4493cd15 100644 (file)
@@ -9,7 +9,3 @@ Packages=
         libfido2
         util-linux-core
         erofs-utils
-
-RemovePackages=
-        # Various packages pull in shadow-utils to create users, we can remove it afterwards
-        shadow-utils