Merge initramfs scripts
authorChristian Hofstaedtler <ch@grml.org>
Sun, 11 Dec 2011 18:59:39 +0000 (19:59 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Sun, 11 Dec 2011 18:59:39 +0000 (19:59 +0100)
etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs [deleted file]
etc/grml/fai/config/scripts/GRMLBASE/80-initramfs [moved from etc/grml/fai/config/scripts/GRMLBASE/47-initramfs with 59% similarity]

diff --git a/etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs b/etc/grml/fai/config/scripts/GRMLBASE/10-configure-initramfs
deleted file mode 100755 (executable)
index cccfb77..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/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 <mika@grml.org>
-# 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 -v /etc/initramfs-tools/hooks/000-udev-shutup
-fcopy -v /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
similarity index 59%
rename from etc/grml/fai/config/scripts/GRMLBASE/47-initramfs
rename to etc/grml/fai/config/scripts/GRMLBASE/80-initramfs
index 2302584..b2b0879 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
-# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/47-initramfs
-# Purpose:       Rebuild initramfs in chroot
+# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/80-initramfs
+# Purpose:       configure initramfs and rebuild it
 # Authors:       grml-team (grml.org)
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
@@ -9,6 +9,14 @@
 set -u
 set -e
 
+fcopy -v /etc/initramfs-tools/hooks/000-udev-shutup
+fcopy -v /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
+
 echo "Rebuilding initramfs"
 
 for initrd in "$(basename $target/boot/vmlinuz-*)" ; do