diff options
author | Kel Modderman <kel@otaku42.de> | 2008-12-24 09:56:07 +1000 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2008-12-24 12:06:12 +0100 |
commit | ce17342cc5d0395108c8fe4150ad8849104029e7 (patch) | |
tree | 00a8e512eaf171b61479184b917dcf9da06af609 /init | |
parent | d2791a8fa458d473ff92d0710fe4d71487c76d6b (diff) | |
download | initramfs-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-x | init | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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." |