Sample Header Ad - 728x90

Does fstab make sense for chroot jail?

1 vote
1 answer
408 views
I've created an fstab file (to mount /dev/pts and /proc, with the bind option) as part of a jail but when I chroot to the jail neither filesystem is mounted. This makes me wonder when the fstab for a jail is parsed while chroot-ing. Is this done before, during, after or never? I'm starting to think never because once the jail has been entered the filesystems that fstab is trying to mount should be out of reach. *(I encountered this stuff while debugging a production system, which makes me wonder if chroot jail fstabs used to be supported but no longer are.)*
Asked by Olumide (177 rep)
Jan 30, 2023, 05:07 PM
Last activity: Jan 30, 2023, 08:06 PM