Skip to content

Commit

Permalink
Minimize the package set in mktree.fedora
Browse files Browse the repository at this point in the history
We don't need audit and ima-evm-utils, those are for the plugins which
we disable in the tests.  We do, however, need popt and shadow-utils
(pulled in by the above) so list those explicitly.

This also conveniently removes systemd (pulled in by audit) which we no
longer need since commit 2bdd7d7.  To
future-proof, though, exclude systemd-udev which is not needed in
containers.

Lastly, remove gdb-headless which is redundant since we already install
gdb-minimal.

As a nice side effect, this fixes the spurious warning during the DNF
transaction that comes from systemctl(1) through the %systemd_post macro
used by audit (about requiring a /proc mount in the installroot).
  • Loading branch information
dmnks committed Jul 31, 2023
1 parent d7f7c8b commit 4c41faf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/mktree.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ case $CMD in
--setopt=keepcache=1 \
--setopt=install_weak_deps=0 \
--disablerepo=\* --enablerepo=fedora,updates \
--exclude=rpm \
audit \
--exclude=rpm,systemd-udev \
bash \
binutils \
bubblewrap \
Expand All @@ -93,13 +92,11 @@ case $CMD in
findutils \
gawk \
gcc \
gdb-headless \
gdb-minimal \
glibc \
gpg \
grep \
gzip \
ima-evm-utils \
libacl \
libarchive \
libcap \
Expand All @@ -111,9 +108,11 @@ case $CMD in
openssl-libs \
patch \
pkgconf-pkg-config \
popt \
python3 \
rpm-sequoia \
sed \
shadow-utils \
sqlite-libs \
tar \
unzip \
Expand Down

0 comments on commit 4c41faf

Please sign in to comment.