Add PREREQ header to grmls initramfs-tools script
authorMichael Prokop <devnull@localhost>
Mon, 15 Sep 2008 10:52:55 +0000 (12:52 +0200)
committerMichael Prokop <devnull@localhost>
Mon, 15 Sep 2008 10:52:55 +0000 (12:52 +0200)
debian/changelog
etc/grml/fai/live-initramfs/grml-script.init-top

index 2b9b554..bda0675 100644 (file)
@@ -4,8 +4,11 @@ grml-live (0.9.3) unstable; urgency=low
     /etc/grml/fai/grml/grml_cleanup_chroot.deborphan and
     get rid of aptitude via
     /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
+  * Add PREREQ header to grml's initramfs-tools script, otherwise
+    booting fails with "PANIC: Circular dependancy.  Exiting."
+    Thanks for debugging help, maximilian attems.
 
- -- Michael Prokop <mika@grml.org>  Sat, 06 Sep 2008 20:05:16 +0200
+ -- Michael Prokop <mika@grml.org>  Mon, 15 Sep 2008 12:51:15 +0200
 
 grml-live (0.9.2) unstable; urgency=low
 
index 367f79f..462642d 100755 (executable)
@@ -1,5 +1,22 @@
 #!/bin/sh
 
+# prereq header {{{
+# without this header booting will fail with:
+# "PANIC: Circular dependancy.  Exiting."
+PREREQ=""
+prereqs()
+{
+        echo "$PREREQ"
+}
+case $1 in
+# get pre-requisites
+prereqs)
+        prereqs
+        exit 0
+        ;;
+esac
+# }}}
+
 # helper functions {{{
 
 if grep -qe debug -qe verbose /proc/cmdline 2>/dev/null ; then