I was looking at http://www-106.ibm.com/developerworks/linux/library/l-kexec.html?ca=dgr-lnxw02RebootFast Then I noticed kexec-tools wasn't in portage, then I found: http://bugs.gentoo.org/show_bug.cgi?id=20589 The ebuild looks like it would need some minor tweaking It would be super if this was in portage, thanks
OK, I am going to revisit this now. Jay
Created attachment 37963 [details] kexec-tools-1.95.ebuild Kexec-tools ebuild 1.95, worked for me just now when I wrote it :D Gouranga! -DaMouse
cc'ing plasmaroo at seemant's suggestion
Created attachment 38001 [details] Refined Kexec-tools-1.96.ebuild I just refined my ebuild a bit so that its a little cleaner and also uses a newer version which I found browsing the old ebuild in the depths of the archives.
Created attachment 39189 [details] ebuild for kexec-tools-1.97 there's a new version of kexec-tools, so here's a new ebuild based uppon the previous one. i do prefer to put kexec in /sbin, just in case /usr is a seperate partition. i also added RESTRICT="nomirror" to force downloading from SRC_URI. Justus
hmmm, good call i didn't notice that it didn't to /bin and already.. perhaps the _test thing should go in /sbin? -DaMouse
Created attachment 39768 [details] Improved kexec ebuild (with scripts) As to DaMouse's comment, kexec should theoretically work on ppc, adding keyword, more testing is required. This ebuild is very much like the others, but: a) bumped to 1.98 b) has a nice init script, taking multiple parameters c) modifies reboot.sh to make use of kexec I hope that this time kexec won't dissapear from the kernel.
Sorry for the spam, I forgot to add that kexec_test binary is useless and segfaulting, my ebuild doesn't install that.
Perhaps we could make something to read grub.conf and load kexec -l from there? -DaMouse
What about lilo/silo/milo/syslinux/(put your bootmanager here) questions would then follow. As of grub, it won't be easy, we don't know what is current default... It would require parsing of the config, not impossible, but quite cumbersome for a shell script. Maybe Python, but I have other things to do.
latest is 1.98 - can we make this ready for submit, because kexec made it in the upcomming kernel 2.6.9 - http://kerneltrap.org/node/view/3870 ...
After testing that very much on x86, I can say it's ready. PPC, ia64 and amd64 are untested, but unless kexec-tools or kexec call is broken on them, it should work.
I agree its ready to me merged since its being merged into a "stable" kernel tree then i should indeed be brought to portage to keep up with modern technology :) -DaMouse
there's already the version 1.100
I will take care of this. Is it ok, if I leave reboot.sh out for the beginning? This is, because it is already in baselayout and I dont want to interfere with them.
thank you, I added it without the reboot.sh