[Cbe-oss-dev] [PATCH 2/2] ps3fb: fix deadlock on kexec()
Patrick Mansfield
patmans at us.ibm.com
Sat Jan 12 03:53:19 EST 2008
On Fri, Jan 11, 2008 at 11:15:36AM +0100, Geert Uytterhoeven wrote:
> Which brings us to another question: shouldn't all processes be killed for
> doing a safe kexec, just like is done for shutdown/halt/poweroff (unless you
> use `-f')? Of course this makes things more complicated, as the actual kexec
> can no longer be done by the application, but must be handled by init instead.
Yes, you'd have to do the same as a normal shutdown to be safe.
Fedora init scripts call kexec for reboot conditionally in the reboot
(linked to halt) script.
So with F8 on QS20, running:
kexec -l --initrd=/boot/initrd-2.6.23.9-85.fc8.img --append="console=hvc0 root=LABEL=/ selinux=0" /boot/vmlinuz-2.6.23.9-85.fc8
Before a "shutdown -r" caused the reboot to use kexec. Cool, I didn't know
that was so easy!
Too bad they don't autorun a kexec -l somewhere, and that kexec failure
output goes to /dev/null, else I'd noticed this a long time ago.
-- Patrick Mansfield
More information about the cbe-oss-dev
mailing list