Bind mount /dev from fstab with systemd
I've been trying to (r)bind mount /dev from fstab and it is failing for
some reason that I can't figure out.
I have tried to mount it on demand, only when accessed, since the chroot
where I need it is not used very often, to try and achieve that I've
tried the following line in fstab:
/dev /path/to/chroot/dev none rbind,noauto,x-systemd.automount 0 0
This didn't work, trying 'ls /path/to/chroot/dev' seems to hang forever
and the output from journalctl says:
systemd: Job dev.device/start timed out.
systemd: Job extra-chroot-centos-dev.mount/start failed with result
systemd: Job dev.device/start failed with result 'timeout'.
I have also tried mounting it on boot using:
/dev /path/to/chroot/dev none rbind 0 0
Which also doesn't work and makes the boot process stop, the machine is
still responsive to ctrl-alt-del and reboots cleanly but there is no
indication of why it stops.
Bind mounting /proc and /sys when accessed works fine, also mounting
manually with 'mount --rbind /dev /path/to/chroot/dev' works
just fine, I am out of ideas and google doesn't know either, any tips or
pointers are welcome.
|All times are GMT. The time now is 01:36 PM.|
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.