Hi,
I want to automate the mounting of the ports tree with ezjail. By default ezjail mounts the basejail into each new jail and links some directories up to this one.
Now it would be the easiest to do following:
Logically this should provide all jails with the ports tree (except the distfiles). Unfortunately this doesn't work. The symlink is still active in the new jail.
How do you solve this issue?
I want to automate the mounting of the ports tree with ezjail. By default ezjail mounts the basejail into each new jail and links some directories up to this one.
Code:
# ls -al /usr/local/jails/build/usr
total 73
drwx------ 5 root wheel 15 May 2 17:46 .
drwx------ 12 root wheel 22 May 2 17:46 ..
lrwxr-xr-x 1 root wheel 17 May 2 17:46 bin -> /basejail/usr/bin
drwx------ 2 root wheel 2 Jan 3 08:55 games
lrwxr-xr-x 1 root wheel 21 May 2 17:46 include -> /basejail/usr/include
lrwxr-xr-x 1 root wheel 17 May 2 17:46 lib -> /basejail/usr/lib
lrwxr-xr-x 1 root wheel 19 May 2 17:46 lib32 -> /basejail/usr/lib32
lrwxr-xr-x 1 root wheel 21 May 2 17:46 libdata -> /basejail/usr/libdata
lrwxr-xr-x 1 root wheel 21 May 2 17:46 libexec -> /basejail/usr/libexec
drwx------ 3 root wheel 3 May 3 17:33 local
drwx------ 2 root wheel 2 Jan 3 08:55 obj
lrwxr-xr-x 1 root wheel 19 May 2 17:46 ports -> /basejail/usr/ports
lrwxr-xr-x 1 root wheel 18 May 2 17:46 sbin -> /basejail/usr/sbin
lrwxr-xr-x 1 root wheel 19 May 2 17:46 share -> /basejail/usr/share
lrwxr-xr-x 1 root wheel 17 May 2 17:46 src -> /basejail/usr/src
Now it would be the easiest to do following:
mount_nullfs /usr/ports /usr/local/jails/basejail/usr/ports
Logically this should provide all jails with the ports tree (except the distfiles). Unfortunately this doesn't work. The symlink is still active in the new jail.
How do you solve this issue?