diff options
| author | Marco Amadori <amadorim@vdavda.com> | 2008-09-16 12:11:41 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:02 +0100 |
| commit | 1be87e2b9e51755ed766943f4c7f14de14db4b97 (patch) | |
| tree | 39274c82c98bf2aa40f5389a127f6d071524e55e /scripts | |
| parent | bc58aa7cd360609e2f52c5db14e87056a12937d8 (diff) | |
| download | live-boot-1be87e2b9e51755ed766943f4c7f14de14db4b97.tar.gz live-boot-1be87e2b9e51755ed766943f4c7f14de14db4b97.zip | |
Override maybe_break from initramfs-tools.
* "break=<phase>" 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.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/live-functions | 10 |
1 files changed, 10 insertions, 0 deletions
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() { |
