as we know chroot needs some fs to be mounted inside chroot directory like the following :
chroot_dir=/some/where
cd $chroot_dir/
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
what i want is to mount theses directories with their absolute path
for sys and dev it's very clear to me !
it can be like that :
chroot_dir=/some/where
mount --rbind /sys $chroot_dir/sys/
mount --rbind /dev $chroot_dir/dev/
but i don't know how to deal with proc
i don't know if it should be like that :
mount -t $chroot_dir/proc $chroot_dir/proc $chroot_dir/proc/
or any !
anyone knows how to deal with this please?