Max Kellermann <[EMAIL PROTECTED]> writes:

> With CLONE_NEWNS (a clone()/unshare() option), schroot could make all
> mounts local, so the main host does not see them.  The kernel would
> automatically take care of all the cleanup involved in unmounting.  It
> could also use pivot_root() instead of chroot().

This does sound interesting.  If we can integrate this into the
existing setup script usage, that would be great.  However, the setup
scripts do need to have access to the host filesystem, which might
prevent CLONE_NEWNS from working nicely.  However, pivot_root might
well be an answer to that; we would just need to umount the old rootfs
after the setup scripts run.

If you had any suggestions about the best way to implement this, I
would be happy to hear them.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your maily.

Attachment: pgpahDSbTlmuu.pgp
Description: PGP signature

Reply via email to