Have proot not create and bind /host-rootfs to /

45 views
Skip to first unread message

Corbin Champion

unread,
Apr 13, 2014, 1:42:45 AM4/13/14
to proo...@googlegroups.com
Is it possible to have this built in binding not automatically created?  I am sure it is possible, but wondering if it is without source code modification.

Thanks,
Corbin

Cédric VINCENT

unread,
Apr 13, 2014, 1:56:01 AM4/13/14
to proo...@googlegroups.com
Hello Corbin,

PRoot automatically creates mounted directories if they are missing in
the guest rootfs. Independently, "/host-rootfs" is automatically
mounted when "-q" is specified because it is required to execute host
programs, like QEMU itself.

This will be fixed in the future, either thanks to the PRoot VFS, or
by removing such created directories at PRoot exit. In the meantime,
you can define the environment variable "PROOT_DONT_POLLUTE_ROOTFS";
this tells PRoot not to create missing mount directories, but they are
mounted anyway. That is, "ls /" will not display "/host-rootfs", but
"ls /host-rootfs" will work (it's as if this directory were hidden).

Regards,
Cédric
Reply all
Reply to author
Forward
0 new messages