2 # Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/80-initramfs
3 # Purpose: configure initramfs and rebuild it
4 # Authors: grml-team (grml.org)
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
12 fcopy -v /etc/initramfs-tools/hooks/000-udev-shutup
13 fcopy -v /etc/initramfs-tools/conf.d/xz-compress
14 fcopy -v /etc/initramfs-tools/modules
16 if ! [ -f $target/usr/share/initramfs-tools/scripts/live ] ; then
17 echo "Error: live-boot/-initramfs does not seem to be present, can not create initramfs. Exiting.">&2
21 echo "Rebuilding initramfs"
23 for initrd in "$(basename $target/boot/vmlinuz-*)" ; do
24 if ! $ROOTCMD update-initramfs -k "${initrd##vmlinuz-}" -c ; then
25 echo "Creating fresh initramfs did not work, trying update instead:"
26 $ROOTCMD update-initramfs -k "${initrd##vmlinuz-}" -u