should fstab always be edited outside of the jail?

guermantes

Patron
Joined
Sep 27, 2017
Messages
213
Hi,
fstab does not show anything when searching the online documentation, so I'll ask here:
I installed openjdk in a jail and the message when installing says to mount two things in the fstab. Only thing is that my jail (basejail 13.1) does not have an /etc/fstab.
Am I supposed to use the one outside the jail in the ../iocage/<jailname> folder, even though I am not mounting anything from the outside into the jail? Is the syntax the same or do I need to specify something to make the mount "internal"?
I suppose I should use iocage fstab -e ?

Code:
 Message from openjdk17-17.0.6+10.1:
 --
 This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and
 procfs(5) mounted on /proc.
 If you have not done it yet, please do the following:
 mount -t fdescfs fdesc /dev/fd mount -t procfs proc /proc
 To make it permanent, you need the following lines in /etc/fstab:
 fdesc   /dev/fd     fdescfs     rw  0   0
 proc    /proc       procfs      rw  0   0
 
Joined
Jan 7, 2015
Messages
1,155
So you can edit it normally outside the jail. But its probably just easier to do this...

Code:
iocage stop JAILNAME

iocage set mount_fdescfs=1 JAILNAME

iocage set mount_procfs=1 JAILNAME

iocage start JAILNAME
 
Top