That is the right way to kexec a new kernel after clean shutdown. It is
possible to make kexec-tools divert /etc/init.d/reboot to a new script
that does "kexec -e" and "reboot -d -f -i" if kexec fails. This is
something I am considering doing in one of the future releases.

--
Khalid


On Fri, 2005-12-23 at 01:12 +0100, Matthijs Kooijman wrote:
> Package: kexec-tools
> Version: 1.101-2
> Severity: wishlist
> 
> Hey,
> 
> for kexec to be actually useful, there needs to be some way to not just do a
> kexec, but also do a proper shutdown first.
> 
> I have solved this right now by prepending the "reboot" command in
> /etc/init.d/reboot command with "kexec -e" (which will fail and allow the
> normal reboot command to run when no kernel has been loaded before by kexec).
> Something similar should be done by kexec-tools, though this will probably
> need some modifications in the sysvinit package too.
> 
> Gr.
> 
> Matthijs
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.14.4
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> 
> Versions of packages kexec-tools depends on:
> ii  libc6                         2.3.5-9    GNU C Library: Shared libraries 
> an
> 
> kexec-tools recommends no packages.
> 
> -- no debconf information
> 
-- 

====================================================================
Khalid Aziz                       Open Source and Linux Organization
(970)898-9214                                        Hewlett-Packard
[EMAIL PROTECTED]                                  Fort Collins, CO

"The Linux kernel is subject to relentless development" 
                                - Alessandro Rubini



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to