mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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:
parent
5b1411721f
commit
94e11cd375
@ -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'`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user