Subject: Re: PATCH: init(8) - multiuser under chroot
To: Alan Barrett <>
From: Jachym Holecek <>
List: tech-userlevel
Date: 08/31/2005 00:14:54

> I'd like it to be configurable.  Perhaps yet another sysctl node
> to choose between:
>   a) don't chroot anything.
>   b) init never chroots itself, but does run /etc/rc in a chroot,
>      parses ${chroot}/etc/ttys to tell what getty-equivalent programs
>      to run, and runs each getty-equivalents in a chroot.
>   c) init chroots itself, and then runs everything else without
>      further chrooting.
>   d) init chroots itself, and then execs /sbin/init inside the
>      chroot.
> Can run multiuser stuff in chroot:                    - B C D
> Can get back to single user mode in the "real" root:  A B - -
> Can boot with small init, but run full-featured init: - - - D

This sounds reasonable. And we can only provide A in the SMALL
case, to make sure install media don't get upset. It will take
some time before I can look at it though...

		-- Jachym Holecek