GRMLBASE scripts: run all fcopy commands in verbose mode.
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 10-configure-initramfs
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/10-build-initramfs
3 # Purpose:       configure live-initramfs and build initramfs for booting
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@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 ################################################################################
8
9 set -u
10 set -e
11
12 fcopy -v /usr/share/initramfs-tools/scripts/init-top/grml
13 fcopy -v /etc/initramfs-tools/hooks/000-udev-shutup
14 fcopy -v /etc/initramfs-tools/conf.d/xz-compress
15
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
18   exit 1
19 fi
20
21 # The initramfs itself will be created through grml-live script itself.
22
23 ## END OF FILE #################################################################
24 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2