hooks: initramfs: add option to remove an existing initramfs

This commit is contained in:
Christian Poessinger 2019-05-05 17:44:23 +02:00
parent 9da68d6850
commit 5a3489861d

View File

@ -5,4 +5,4 @@ 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
update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`
update-initramfs -c -d -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`