summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/17-gen_initramfs.chroot
blob: 0f5e0ece09d6685aeceee1393c46b599be082ccb (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 -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`