X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F10-configure-initramfs;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F10-configure-initramfs;h=b85fc80b80fd4b895aa49e26dd88c8c53bed5c39;hb=0bc24c4cb2af5eb8dad1890e3086228ba1ecf8e1;hp=0000000000000000000000000000000000000000;hpb=b8c8c53e77da46efb3a4ca0894d74e9604584d85;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs b/etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs new file mode 100755 index 0000000..b85fc80 --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs @@ -0,0 +1,24 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/10-build-initramfs +# Purpose: configure live-initramfs and build initramfs for booting +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +################################################################################ + +set -u +set -e + +fcopy /usr/share/initramfs-tools/scripts/init-top/grml +fcopy /etc/initramfs-tools/hooks/000-udev-shutup +fcopy /etc/initramfs-tools/conf.d/xz-compress + +if ! [ -f $target/usr/share/initramfs-tools/scripts/live ] ; then + echo "Error: live-boot/-initramfs does not seem to be present, can not create initramfs. Exiting.">&2 + exit 1 +fi + +# The initramfs itself will be created through grml-live script itself. + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2