summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-05-05 17:44:23 +0200
committerChristian Poessinger <christian@poessinger.com>2019-05-05 17:44:23 +0200
commit5a3489861dc50e6bd4083993ad8065340f8f7c0f (patch)
tree51b6f834e674892204acd0500ac63f2ad67d9d0d
parent9da68d6850a5a103e8569bdebab0a9fa7776d823 (diff)
downloadvyos-build-5a3489861dc50e6bd4083993ad8065340f8f7c0f.tar.gz
vyos-build-5a3489861dc50e6bd4083993ad8065340f8f7c0f.zip
hooks: initramfs: add option to remove an existing initramfs
-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 0f5e0ece..9c2cfb04 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 -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`
+update-initramfs -c -d -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`