Skip to content

Commit

Permalink
opensuse: prevent zypper from pulling busybox in the initrd
Browse files Browse the repository at this point in the history
zypper's internal logic selects busybox-package variants of packages that are
required via dependency and not explicitly listed to install, which also causes
busybox to be added to the initrd.

Also, remove the shadow package (the equivalent to the shadow-utils package in
Fedora).
  • Loading branch information
aafeijoo-suse authored and DaanDeMeyer committed Oct 20, 2024
1 parent 485da58 commit 5414204
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mkosi/resources/mkosi-initrd/mkosi.conf.d/10-opensuse.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ Distribution=opensuse
Packages=
patterns-base-minimal_base

# Various packages added as dependencies. If they are not explicitly installed, the zypper inner
# logic picks the busybox-package variant, which adds also busybox in the initrd.
diffutils
grep
gzip
which
xz

# Various libraries that are dlopen'ed by systemd
libfido2-1
libtss2-esys0
Expand All @@ -24,6 +32,10 @@ Packages=

util-linux

RemovePackages=
# Various packages pull in shadow to create users, we can remove it afterwards
shadow

RemoveFiles=
/usr/share/locale/*
/usr/etc/services

0 comments on commit 5414204

Please sign in to comment.