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

Michal Suchanek michal.suchanek at ruk.cuni.cz
Tue Aug 2 04:51:41 PDT 2011


Excerpts from H. Peter Anvin's message of Mon Aug 01 22:38:38 +0200 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.
> > 
> 
> Yes.
> 
> > 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
> override.
> 

I would think leaving the mounts alone and printing a warning is going
to fit most use cases.

People who don't care can ignore it or use a splash screen, people who
want to clean up know what's left, and people who need some of the
mountpoints know they were left behind and that they should do something
about it.

Thanks

Michal



More information about the klibc mailing list