Bind mount /dev from fstab with systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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[1]: Job dev.device/start timed out.
systemd[1]: Job extra-chroot-centos-dev.mount/start failed with result
'dependency'.
systemd[1]: 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.

-- 
Mauro Santos


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux