I mean *before* reboot. kexec, as you may already know, is a mechanism to load a new kernel image. So you can "reboot" your computer without going through all the BIOS initialization stuff. It has important uses, like getting a reliable crash dump, and a cool thing about it is that it makes rebooting much faster.
First you load the kernel image, with a command like. kexec -l /boot/vmlinuz --append="root=/dev/hda2 init=/sbin/initng" Then, if you issue the command kexec -e, the system will immediately execute the new kernel. So I want a mechanism to issue kexec -e at the very last step of the reboot process (by the time initng says "Goodbye"). On 3/23/07, Eric MSP Veith <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Only when _re_booting? On Friday 23 March 2007, "Jorge Peixoto de Morais Neto" <[EMAIL PROTECTED]> wrote: > How can I tell initng to run kexec -e on reboot? > > Thank you. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGA/dIMpEdE19y46cRApmkAJ9G7nc1m0xRBQBj1bCP3hfMEVAsmACePa1f F+3N/05RnVvXVkBRp3aV62Y= =rTnZ -----END PGP SIGNATURE-----
-- Software is like sex: it is better when it is free.
-- _______________________________________________ Initng mailing list [email protected] http://jw.dyndns.org/mailman/listinfo/initng
