[klibc] [PATCH 6/8] switch_root: Fix single file mounts

H. Peter Anvin hpa at zytor.com
Mon Aug 1 13:38:38 PDT 2011

On 08/01/2011 01:27 PM, maximilian attems wrote:
> Ok.
> An yet undecided question is the renaming run-init -> switch_root.
> I agree with the assessment that underscore utilities are not pretty,
> but this thing will be rarely called by the user himself.
> It seems people have settled for the more descriptive switch root.


> The other open question is the move mounting of /dev, /proc, /sys to
> /newroot (with an Google bug in their rc scripts not handling this case).
> switch_root in util-linux does it.

OK, now you actually have *three* ways to handle directories in the old
root: move them, unmount them, or ignore them!  I really dislike having
a hardcoded list of what to treat how; at least one that the user can't


More information about the klibc mailing list