summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/17-gen_initramfs.chroot
blob: 87b53bd641ecebc9cab893fb0553d6c1daef1683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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

if [ -e /boot/initrd.img-* ]; then
	rm -f /boot/initrd.img-*
fi

update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`