diff options
Diffstat (limited to 'data')
-rwxr-xr-x | data/live-build-config/hooks/live/17-gen_initramfs.chroot | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/17-gen_initramfs.chroot b/data/live-build-config/hooks/live/17-gen_initramfs.chroot index 0f5e0ece..87b53bd6 100755 --- a/data/live-build-config/hooks/live/17-gen_initramfs.chroot +++ b/data/live-build-config/hooks/live/17-gen_initramfs.chroot @@ -5,4 +5,8 @@ echo I: Create initramfs if it does not exist. # Kernel complains about non available nls_ascii module when booting from USB pendrive echo "nls_ascii" >> /etc/initramfs-tools/modules +if [ -e /boot/initrd.img-* ]; then + rm -f /boot/initrd.img-* +fi + update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'` |