From d58f511ab49efd880c365a9a40c662fa80e853a7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 15 Sep 2008 12:52:55 +0200 Subject: [PATCH 1/1] Add PREREQ header to grmls initramfs-tools script --- debian/changelog | 5 ++++- etc/grml/fai/live-initramfs/grml-script.init-top | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2b9b554..bda0675 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 06 Sep 2008 20:05:16 +0200 + -- Michael Prokop Mon, 15 Sep 2008 12:51:15 +0200 grml-live (0.9.2) unstable; urgency=low diff --git a/etc/grml/fai/live-initramfs/grml-script.init-top b/etc/grml/fai/live-initramfs/grml-script.init-top index 367f79f..462642d 100755 --- a/etc/grml/fai/live-initramfs/grml-script.init-top +++ b/etc/grml/fai/live-initramfs/grml-script.init-top @@ -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 -- 2.1.4