Hi
I'm trying to mount /dev in a chroot environment.
I am doing:
The problem is that /dev now contains devices that are linked to the absolute path, and as such, not accessible via chroot like:
How can I mount /dev so the links appears to be all within /dev? Obviously, I can create a symbolic link in /mnt/pool/jails/ports/dev to /dev ; but that's not elegant, and I'm sure there are better ways...
Thank you in advance.
I'm trying to mount /dev in a chroot environment.
I am doing:
Code:
chroot /mnt/pool/jails/ports
mount -t devfs devfs /dev
The problem is that /dev now contains devices that are linked to the absolute path, and as such, not accessible via chroot like:
Code:
lrwxr-xr-x 1 root wheel 9 Dec 3 11:44 ugen0.1 -> /mnt/pool/jails/ports/dev/usb/0.1.0
lrwxr-xr-x 1 root wheel 9 Dec 3 11:44 ugen0.2 -> /mnt/pool/jails/ports/dev/usb/0.2.0
lrwxr-xr-x 1 root wheel 9 Dec 3 11:44 ugen0.3 -> /mnt/pool/jails/ports/dev/usb/0.3.0
How can I mount /dev so the links appears to be all within /dev? Obviously, I can create a symbolic link in /mnt/pool/jails/ports/dev to /dev ; but that's not elegant, and I'm sure there are better ways...
Thank you in advance.