From: Zbigniew Jędrzejewski-Szmek Date: Tue, 20 May 2025 12:23:05 +0000 (+0200) Subject: initrd: shadow-utils removal is only necessary on old Fedora X-Git-Tag: v26~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60dade823319be71f028b78d1482a351207c60b;p=thirdparty%2Fmkosi.git initrd: shadow-utils removal is only necessary on old Fedora On rawhide, we get: "No packages to remove for argument: shadow-utils" --- 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 index 000000000..acc547d25 --- /dev/null +++ b/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora-stable.conf @@ -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 diff --git a/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora.conf b/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora.conf index 001efec99..a8b30f06f 100644 --- a/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora.conf +++ b/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-fedora.conf @@ -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