diff options
author | Kim <kim.sidney@gmail.com> | 2019-05-08 13:47:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 13:47:26 +0200 |
commit | 94e11cd375812376957e18861288b5d6e4497479 (patch) | |
tree | f96afe10981a7be4cc4c3d16d5d9baa10635fba2 | |
parent | 5b1411721f808cf1a779bb3807a3f249b1ac045b (diff) | |
download | vyos-build-94e11cd375812376957e18861288b5d6e4497479.tar.gz vyos-build-94e11cd375812376957e18861288b5d6e4497479.zip |
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
-rwxr-xr-x | data/live-build-config/hooks/live/17-gen_initramfs.chroot | 2 |
1 files changed, 1 insertions, 1 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 6ecf4be7..0f5e0ece 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,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'` |