summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKel Modderman <kel@otaku42.de>2008-12-24 09:56:07 +1000
committermaximilian attems <maks@debian.org>2008-12-24 12:06:12 +0100
commitce17342cc5d0395108c8fe4150ad8849104029e7 (patch)
tree00a8e512eaf171b61479184b917dcf9da06af609 /init
parentd2791a8fa458d473ff92d0710fe4d71487c76d6b (diff)
downloadinitramfs-tools-ce17342cc5d0395108c8fe4150ad8849104029e7.tar.gz
initramfs-tools-ce17342cc5d0395108c8fe4150ad8849104029e7.zip
init: variable `break' unset before `maybe_break init' is evaluated
The cmdline parameter `break=init' failed to work. It looks like the variable `break' is unset before `maybe_break init' is evaluated. (closes: #509637)
Diffstat (limited to 'init')
-rwxr-xr-xinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/init b/init
index 69cbeed..4e7fdd3 100755
--- a/init
+++ b/init
@@ -208,6 +208,8 @@ if [ ! -x "${rootmnt}${init}" ]; then
panic "No init found. Try passing init= bootarg."
fi
+maybe_break init
+
# don't leak too much of env - some init(8) don't clear it
# (keep init, rootmnt)
unset debug
@@ -227,6 +229,5 @@ unset resume
unset resume_offset
# Chain to real filesystem
-maybe_break init
exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console
panic "Could not execute run-init."