On Mon, 2009-03-16 at 13:01 +0100, Ralf Hildebrandt wrote:
> Package: kexec-tools
> Version: 20080324-2.1
> Severity: normal
> 
> 
> The /etc/default/kexec setting is always being applied. There's no way
> of saying "reboot, just this time, via reboot instead of kexec".
> 
> One can of course EDIT /etc/default/kexec, reboot, and edit back.
> Anyway, it would be cool to have the possibility of passing an
> argument to reboot that causes a "real" reboot to happen.
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.26-1-686 (SMP w/4 CPU cores)
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages kexec-tools depends on:
> ii  debconf [debconf-2.0]         1.5.26     Debian configuration management 
> sy
> ii  libc6                         2.9-4      GNU C Library: Shared libraries
> 
> kexec-tools recommends no packages.
> 
> kexec-tools suggests no packages.
> 
> -- debconf information:
> * kexec-tools/load_kexec: true
> 
> 
> 

I have been thinking about this. I don't really want to change the
reboot binary. I am thinking of adding a /sbin/cold-reboot script to
kexec-tools package. This script will create a file,
say /var/tmp/no-kexec-reboot, upon execution and then call /sbin/reboot.
When kexec-load init script is run, it will check for the existence of
file /var/tmp/no-kexec-reboot. If it finds the file, it will not load a
kexec kernel and remove the /var/tmp/no-kexec-reboot file. Later when
S85kexec init script runs, it will not find a kexec kernel loaded and
exit. This will result in a cold reboot.

Does this sound workable?

===================
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