Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2017 15:06:02 -0400
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD-11 - /etc/fstab
Message-ID:  <752326cf454b5045b8759e7a4a163a23.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help
I am experimenting with installing iDempiere on a jail called
hllidempiere created with ezjail.  As part of the prerequisites
OpenJDK is required.  When installed in the jail the OpenJDK pkg says
this:

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

Now, there is no /etc/fstab in the jail itself.  However on the host
system there exists: /etc/fstab.hllidempiere.  Checking
/usr/local/etc/ezjail/hllidempiere I see that these flags are set:

export jail_hllidempiere_mount_enable="YES"
export jail_hllidempiere_devfs_enable="YES"
export jail_hllidempiere_devfs_ruleset="devfsrules_jail"
export jail_hllidempiere_procfs_enable="YES"
export jail_hllidempiere_fdescfs_enable="YES"

So, I believe that I should be able to perform the requisite file
system mounts. What I am not clear on is how to add these file systems
to the jail's fstab so that they are automatically mounted whenever
the jail starts.  I attempted to add these commands to
/etc/fstab.hllidempiere but this had no evident effect.

How is this done?

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?752326cf454b5045b8759e7a4a163a23.squirrel>