Συντάκτης: Adam Borowski Ημερομηνία: Προς: dng Αντικείμενο: Re: [DNG] Mini init script written in Perl boots.
On Fri, Jun 17, 2016 at 08:19:12PM +0100, KatolaZ wrote: > Then you can provide any other alternative definition of "init
> system", but if there is no procedure that does those things for you,
> then you have to manually do those tasks, at each reboot. In that case
> the 12-lines init might just spawn a shell
Why would you even need a separate process to spawn the shell? /bin/bash is
a perfectly capable init that can reap zombies, start processes, do any
interactive tasks, or be automated (.bashrc, trap EXIT, etc).
Specifying init=/bin/bash via grub on the cmdline is a common rescue
technique for systems with a broken init. Guess what init implementation
needs to be rescued this way most often...