You are not logged in.

#1 2015-06-03 02:51:19

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

About virtual kernel fs (proc/sysfs/devtmps...) for chroot

Does anyone has some good docs or so which explains HOW different "virtual kernel file systems" is needed by chroot?

The reason I am asking this is when I try to know about necessary preparation for chroot, I see many different suggested ways.

In Arch we usually tell people to use `arch-chroot` to save the hassle, which will basically do these:
https://projects.archlinux.org/arch-ins … 408ae3#n82
which is more or less the same as:
http://www.linuxfromscratch.org/lfs/vie … -bindmount

But in some sources, there is no mention of devpts or shm.

Worsestill, different people have different answers on whether each of them should be simply mounted with -t fstype or --bind, like: http://superuser.com/questions/165116/m … nvironment

ArchWiki currently even suggested --rbind, which actually seem to make things like hell if you need to umount without reboot. (for /proc and /sys, `umount -R` will tell you device is busy; for /dev `umount -R` will even umount the submount in the /dev of live environment)

So, any better pointers?

Offline

Board footer

Powered by FluxBB