On Mon, 2011-01-10 at 03:37 +1030, Arthur Marsh wrote:
> Package: kexec-tools
> Version: 1:2.0.1-4
> Severity: important
> 
> 
> I have used the example in the kexec man page to load a kernel
> but when 
> 
> kexec -e
> 
> is run, I get a flush of the disks then reboot without the shutdown scripts 
> being called. 
> 
> Is this the intended behaviour?
> 
> I am looking to be able to run the just installed kernel for git bisection
> work.

Yes, that is the intended behavior of "kexec -e". "kexec -e" will
execute the shut down routines in the kernel and reboot into new kernel.
It does not call the shutdown scripts in init. kexec makes a system
call. 

The right way to execute shutdown scripts in init and then kexec into
new kernel is to create a script in rc6.d that calls "kexec -e" and have
it execute before the script that calls reboot. When you install
kexec-tools package, this script is automatically set up for you and all
you have to do to kexec a new kernel is to execute "reboot". As long as
LOAD_KEXEC is set to true in /etc/default/kexec, init scripts installed
by kexec-tools will kexec load the kernel in /etc/default/kexec and
kexec into it after calling all shutdown scripts in init.

-- 
Khalid
===================
Khalid Aziz
kha...@debian.org




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to