Rename class GRML into GRMLBASE and update all files according.
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 10-build-initramfs
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRML/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 # Latest change: Sun Sep 16 22:56:40 CEST 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 cp /etc/grml/fai/live-initramfs/live.conf $target/etc/live.conf
14 cp /etc/grml/fai/live-initramfs/grml-script.init-top "$target/usr/share/initramfs-tools/scripts/init-top/grml"
15
16 FILE=$(ls -1 $target/boot/vmlinuz-* | sort -r | head -1)
17 KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}")
18
19 $ROOTCMD update-initramfs -c -t -k $KERNELVERSION
20
21 ## END OF FILE #################################################################
22 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3