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

H. Peter Anvin hpa at zytor.com
Fri Jul 29 09:27:02 PDT 2011

On 07/29/2011 06:40 AM, Michal Suchanek wrote:
> union squashfs content and tmpfs over new_root using aufs, unionmount or
> whatever els

This appears to be the key part of this usecase.  The various union
mounting bits didn't exist when this code was written.

In *this particular* use case, the correct semantics is to leave the
mount alone, together with any directory needed as scaffolding.  This is
somewhat noteworthy that some other use cases which have been proposed
have different requirements.

I would prefer this to bee an option, e.g. --keep-mounts, but perhaps
that's overkill?


H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

More information about the klibc mailing list