Pending patches

Denys Vlasenko vda.linux at googlemail.com
Mon Nov 10 14:56:04 PST 2008


On Monday 10 November 2008 13:11, Vladimir Dronnikov wrote:
> > reboot -f
> > echo "Kernel has been instructed to reboot"
> > while true; do sleep 9999; done
> >
> > because otherwise, if script exits, runsvdir
> > will loop back and restart services, and this is definitely
> > what you dont want to happen!
> 
> Wonder what happens when init dies and kernel oopses? Does kernel
> sync/umount filesystems? If so I'd let it be.
> Wonder also does kernel sync/umount filesystems when one issues
> reboot(whatever)?
> 
> I still view some awkwardness in the procedure. You treat init as perpetuum
> mobile of which we have to break a detail to get it stopped. I mostly tend
> to treat it as a process that just exits when your system have accomplished
> its task. Where am I wrong, Denys?

Boot with init=/bin/sh, and try exiting from that shell.
You will see.
--
vda


More information about the busybox mailing list