undo hooks: initramfs: add option to update an existing initramfs

this is to generate an initramfs if it does not exist, updating when not exist does not work and will break the image build process
This commit is contained in:
Kim 2019-05-08 13:47:26 +02:00 committed by GitHub
parent 5b1411721f
commit 94e11cd375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 -u -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`
update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`