CTRL-ALT-DEL not working as expected. Seeking for advices

Bruno Cornec bruno at victoria.frmug.org
Wed Mar 20 23:18:38 UTC 2013


Hello,

I'm using busybox in the context of the GPL disaster recovery and 
cloning solution called MondoRescue (Cf: http://www.mondorescue.org).

We have an opened bug report (Cf:
http://trac.mondorescue.org/ticket/627) concerning the restoration
phasebase don busybox, where a user is supposed to be able to press
CTRL-ALT-DEL in order to reboot the computer before launching an
automatic restore. This is not working as expected.

We are up to now using version 1.18.5, with the attached .config file to
compile busybox. We have an inittab file containing:

#
# inittab       This file describes how the INIT process should set up
#               the system in the mindi-busybox context
#

# Order is important, read from bottom to top

# By default launch the MondoRescue script
console::sysinit:/etc/init.d/rcS

console::restart:/sbin/init

# Trap CTRL-ALT-DELETE
null::ctrlaltdel:/sbin/reboot

null::shutdown:/bin/killall klogd
null::shutdown:/bin/killall syslogd
null::shutdown:/bin/umount -a -r

I'm testing mostly on KVM VMs, and simulate the CTRL-ALT-DEL with the
sendkey command from the monitor window. This is working when we are at
syslinux boot prompt, but as soon as we launch init, then we are unable
to reboot the VM using CTRL-ALT-DEL. I also tested on real HW with the
same result.

So I'm surely doing something wrong, either in my inittab or in my
congif of busybox, but I don't see what.

I even tried with the latest 1.20.2 (which I may use as the base for the
next stable version) without more luck either.

Using showkey in the VM, I see that the sendkey command does indeed send
the keys to the system, but it doesn't generate the reboot. I attached
the corresponding capture.

I read at
http://lists.busybox.net/pipermail/busybox/2012-May/077855.html that a
reason could be a non-busybox reboot but that's not our case. While we
do replace some busybox commands by the native ones, reboot is linked to
busybox (as well as halt, but not shutdown, which I just remarked
now,but linking it to busybox doesn't change stuff anyway).

So I'm looking for advises on how to debug more, or any hint wrt my
usage.

Thanks in advance,
Best regards,
Bruno.
-- 
Des infos sur la musique ancienne  -- http://www.musique-ancienne.org
Des infos sur les logiciels libres -- http://www.HyPer-Linux.org
Home, sweet musical Home -- Lover of Andromède, Béatrice, Early Music, 
Josquin, Linux, Mélisande, Recorder, and Ségolène (not in that order)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-showkey.png
Type: image/png
Size: 78949 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130320/f5df559a/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 6167 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130320/f5df559a/attachment.obj>


More information about the busybox mailing list