summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-12-29 13:49:43 +0100
committerChristian Poessinger <christian@poessinger.com>2018-12-29 13:49:43 +0100
commitaa0eb3349d354ea245a243124ee7b3b4cb8ca81f (patch)
treeee87d0dba4d94c5e73802566c4181f404ff78e30 /data/live-build-config/hooks/live
parentb6e17d72446ada24eff912c689818b3b2722a3a8 (diff)
downloadvyos-build-aa0eb3349d354ea245a243124ee7b3b4cb8ca81f.tar.gz
vyos-build-aa0eb3349d354ea245a243124ee7b3b4cb8ca81f.zip
Add 'nls_ascii' to initramfs to avoid USB pendrive boot warning
Diffstat (limited to 'data/live-build-config/hooks/live')
-rwxr-xr-xdata/live-build-config/hooks/live/17-gen_initramfs.chroot4
1 files changed, 4 insertions, 0 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 aced728a..0f5e0ece 100755
--- a/data/live-build-config/hooks/live/17-gen_initramfs.chroot
+++ b/data/live-build-config/hooks/live/17-gen_initramfs.chroot
@@ -1,4 +1,8 @@
#!/bin/sh
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'`