Bug#551992: general: stopping squeeze chroot shuts system
Daniel Burrows <firstname.lastname@example.org> writes:
> On Thu, Oct 22, 2009 at 02:16:39PM +0200, Martin Boer <email@example.com> was heard to say:
>> On this system I installed a squeeze chroot using the following command:
>> debootstrap squeeze /chroot/squeeze-x64-lighttpd-chroot http://ftp.debian.org/debian/
>> This works as expected but when I stop the chroot, the system shuts as well.
>> This is highly unexpected and somewhat unpleasant behaviour.
> By "stop the chroot", do you mean that you typed "exit" in the
> chrooted shell, or that you ran "shutdown -h" there?
or reboot or halt.
That normaly gives an error 'init: timeout opening/writing control
channel /dev/initctl'. But if you
mount --bind /dev /chroot/squeeze-x64-lighttpd-chroot/dev
then I guess that would tell the real init to shutdown/reboot.