OS: FreeBSD 7.2 release / Generic kernel
I used CSUP to download the source tree, and the RELENG_7_2, no date
specified. I didn't rebuild the base OS world/kernel.

I have installed a lot of ports on the main system, most of what the
jail would need is also already installed - so the distfiles and ports
directories are already setup to speed of the install process. I
figured I'd save time and effort and use unionfs to allow both systems
to use the same ports directory (to be safe, I won't compile things
from both systems at the same time, but keeping the same ports
directory was fine.

I followed the jail creation instructions in the handbook posted on
the www.freebsd.org

Once the jail was created, I made a script to union the ports directories:
ts.org_mount_ports
    #!/bin/sh
    mount_unionfs /usr/ports /data/jail/ts.org/usr/ports/

I also have my jail shell startup script:
ts.org_shell
    #!/bin/sh
    jail -s 2 /data/jail/ts.org/ ts.org.mydomain 192.168.1.83 /bin/sh


[s...@boromir /data/jail]$ ls ts.org/usr/ports
[s...@boromir /data/jail]$ sudo ./ts.org_mount_ports
[s...@boromir /data/jail]$ ls ts.org/usr/ports
... ports directory listing omitted
[s...@boromir /data/jail]$ sudo ./ts.org_shell
# cd /usr/ports
# ls
The base operating system hangs at this point.



later:
[s...@boromir /data/jail]$ ls ts.org/usr/ports
[s...@boromir /data/jail]$ cd ts.org/usr/ports
[s...@boromir /data/jail/ts.org/usr/ports]$ cp -rf /usr/ports/* .
[s...@boromir /data/jail/ts.org/usr/ports]$ cd /data/jail
[s...@boromir /data/jail]$ ls ts.org/usr/ports
... ports directory listing omitted
[s...@boromir /data/jail]$ sudo ./ts.org_shell
# cd /usr/ports
# ls
... ports directory listing omitted


As you can see, there is a work around, so I'm not that /bothered/ by
this, but it'd be nice to know what's up. Am I doing something wrong?
If not, can anyone replicate this? Should I file a bug report?

Thanks,
-Jim Stapleton
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to