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:
parent
ccb5e1906f
commit
6025da1421
@ -41,7 +41,7 @@ Requires: xz-lzma-compat
|
||||
Requires: xz
|
||||
Requires: pigz
|
||||
Requires: pbzip2
|
||||
Requires: dracut >= 030
|
||||
Requires: dracut >= 050
|
||||
Requires: kpartx
|
||||
|
||||
# Python modules
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user