[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#551992: general: stopping squeeze chroot shuts system



Daniel Burrows <dburrows@debian.org> writes:

> On Thu, Oct 22, 2009 at 02:16:39PM +0200, Martin Boer <martin@grachtwal.nu> 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?
>
>   Daniel

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.

Just guessing,
        Goswin



Reply to: