lorax: Remove vmlinuz from install.img /boot

The kernel in /boot is not needed. Keep the .vmlinuz*hmac file so that
fips mode can check it (this requires dracut-050 or later).

Related: rhbz#1782737
This commit is contained in:
Brian C. Lane 2019-12-13 09:54:43 -08:00
parent ccb5e1906f
commit 6025da1421
2 changed files with 3 additions and 4 deletions

View File

@ -41,7 +41,7 @@ Requires: xz-lzma-compat
Requires: xz
Requires: pigz
Requires: pbzip2
Requires: dracut >= 030
Requires: dracut >= 050
Requires: kpartx
# Python modules

View File

@ -328,9 +328,8 @@ removefrom ${product.name}-logos /usr/share/{firstboot,gnome-screensaver,kde4,pi
runcmd find ${root} -name "*.pyo" -type f -delete
runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \;
## cleanup /boot/ leaving vmlinuz, and .*hmac files
runcmd chroot ${root} find /boot \! -name "vmlinuz*" \
-and \! -name ".vmlinuz*" \
## cleanup /boot/ leaving vmlinuz*hmac files
runcmd chroot ${root} find /boot \! -name ".vmlinuz*hmac" \
-and \! -name boot -delete
## remove any broken links in /etc or /usr