From 1be87e2b9e51755ed766943f4c7f14de14db4b97 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Tue, 16 Sep 2008 12:11:41 +0200 Subject: [PATCH] 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. --- scripts/live-functions | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() { -- 2.1.4