| Summary: | kexec - reboot.sh to load new kernel with kexec instead of reboot | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Stefan Schweizer (RETIRED) <genstef> |
| Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | henrik, radek, rockoo, spock |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | reboot.sh | ||
|
Description
Stefan Schweizer (RETIRED)
2005-01-31 08:54:04 UTC
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 |