Thanks - this looks really promising. I'd never heard of unshare before.
I'll put together a package so people can try it. David On 18/01/13 01:08, Oleg Girko wrote: > Hi! > > After being hit by Mer SDK unmounting issue caused by system mounts shared by > default, I've spent several hours to find a better way to mount directories > to > Mer SDK chroot. > > The resulting patch to mer-sdk-chroot script is attached to this email. > It can be applied directly to https://github.com/mer-tools/sdk-setup/ > > The new approach eliminates the need for explicit "mount" and "umount" steps. > All necessary mounts are preformed in private namespace when entering chroot. > When chrooted process ends, its namespace is discarded by the kernel. > > As a result, the remaining "enter" and "exec" commands are not needed as well, > because they do essentially the same: running a process with private > namespace > in chroot. > > Therefore, the new command line syntax has no action argument and looks like: > mer-sdk-chroot [options] [command args...] > > Best regards, > -- Oleg Girko, http://www.infoserver.ru/~ol/ -- "Don't worry, you'll be fine; I saw it work in a cartoon once..."