Bumping a pet bug
Dirk Engling
erdgeist at erdgeist.org
Sun Jan 22 13:46:55 UTC 2012
On Sun, 22 Jan 2012, simon wrote:
>> Just curious. Why devfs mounts can fail ?
>
> If $JAIL/dev doesn't exist or if one has messed up the devfs rulset
> configuration are two reasons I can think of.
I guess that when you forget sudo, this is where you end up. The
script just does not know when to quit. Other scenarios include situations
where the jails mountpoint is for some reasons unavailable.
Here is the output I get from not running the jail script as root:
Starting jails:mount_nullfs: Operation not permitted
devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted
mount: dev : Operation not permitted
/etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs on
/usr/jails/foo.com/dev
/etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not mounted on
/usr/jails/foo.com/dev
ln: log: Permission denied
mount: /usr/jails/foo.com/dev/fd: No such file or directory
mount: proc : Operation not permitted
cannot start jail "foo_com":
Regards,
erdgeist
More information about the freebsd-rc
mailing list