[Bug 476161] A workaround for no recovery shell
Luke
lukekuhn at hotmail.com
Thu Nov 12 22:57:57 UTC 2009
I have written a workaround for any of the various "no recovery shell" bugs. It's not perfect as you have to reboot in single-suer mode to use it(and again for a root filesystem error correction), but it allows you to recover without booting from another device. It looks for the word "single" on /proc/cmdline, and if it is present stops mountall, opens a recovery shell, and restarts mountall on exiting the shell. It basically does what mountall-shell.conf would do if it caught the stopped mountall signal.
Cut and paste the text below, save it as "recovery-shell.conf" and drop
it into /etc/init .
# Recovery shell-opens shell BEFORE Mountall starts
author "Luke"
description "Bugfix-Recovery shell for single user mode,to recover from failed boots"
start on startup
task
console owner
script
if test $(grep single /proc/cmdline | head -c 4) ; then
initctl stop mountall
usplash_write "QUIT"
setupcon
echo "A Root Shell will now be started for recovery."
sulogin
exec start --no-wait mountall
fi
end script
_________________________________________________________________
Windows 7: Unclutter your desktop.
http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009
--
Recovery shell does not spawn if mountall stopped by esc (mountall 1.0)
https://bugs.launchpad.net/bugs/476161
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list