summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2019-05-08 13:47:26 +0200
committerGitHub <noreply@github.com>2019-05-08 13:47:26 +0200
commit94e11cd375812376957e18861288b5d6e4497479 (patch)
treef96afe10981a7be4cc4c3d16d5d9baa10635fba2
parent5b1411721f808cf1a779bb3807a3f249b1ac045b (diff)
downloadvyos-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-xdata/live-build-config/hooks/live/17-gen_initramfs.chroot2
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'`