summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/17-gen_initramfs.chroot
blob: 6ecf4be7e7b800cf195aca75d66a120cd4727721 (plain)
1
2
3
4
5
6
7
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 -u -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`