From: Marco Amadori Date: Tue, 16 Sep 2008 10:11:41 +0000 (+0200) Subject: Override maybe_break from initramfs-tools. X-Git-Tag: debian/1.139.1-3~7 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=dc73dcb0c6d1b0bff1d2db183613cc96a15a4dc1;p=live-boot-grml.git Override maybe_break from initramfs-tools. * "break=" boot option, previously lead to the overrided panic function which shows a huge bug message info, which in that particular case is misleading, since the "dropping to a shell" is wanted. Signed-off-by: Marco Amadori --- diff --git a/scripts/live-functions b/scripts/live-functions index 49b4a3a..d19b0d5 100644 --- a/scripts/live-functions +++ b/scripts/live-functions @@ -60,6 +60,16 @@ lang2locale() { fi } +# Override maybe_break from scripts/functions +maybe_break() +{ + if [ "${break}" = "$1" ]; then + # Call original panic + . /scripts/functions + panic "Spawning shell within the initramfs" + fi +} + # Override panic from scripts/functions panic() {