Hi, it would be nice if you could change the reboot.sh to the following: # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ /sbin/kexec -e 2>/dev/null || /sbin/reboot -idp
Created attachment 50052 [details] reboot.sh
ok, actually its better to use: /sbin/reboot -ikdp in reboot.sh together with a sysvinit patch from http://www.gc-linux.org/down/isobel/kexec/sysvinit/sysvinit-2.86-kexec.patch
How does this affect non-x86 systems where kexec hasn't been implemented? If this is adopted, it might be worth hiding the patch behind a x86 USE or kexec USE to keep the logic x86-specific (since, AFAIK, kexec was only done for x86 and not ported to other archs.)
afaik, kexec was ported to ppc, but as I am lacking the necessary hardware I have no chance to test it, sorry :( And yes, I think it should be if useq x86; then change reboot.sh; fi At least as long as no one has tested it on ppc :)
the sysvinit patch should be safe for all arches now the question is, how do we incorporate this feature into baselayout ? making reboot always execute kexec certainly is not desired in case user actually *wants* to reboot into the bios ... what if we change the option that reboot uses from '-k' to '-K' ... that way we could add '-K' to shutdown too ... then we'd just have to figure out how to have shutdown communicate with reboot.sh ... could cheat with something like having shutdown touch /.reboot-kexec or /dev/.reboot-kexec, but that'd if / and /dev were readonly :/
any new ideas? (sorry i'm not suffient creative for this kind of things ...) .13 is here, .14 is comming and kexec is also in cvs ...
reboot.sh runs `reboot -idpk` now in svn