Triode, Sorry my attempts to test & resolve mounting share issue when using [email protected] etc. has been piecemeal, but I've finally twigged there's a way to get network shares to mount without resorting to systemd automount, it's documented here: https://wiki.archlinux.org/index.php/systemd#Writing_custom_.service_files,
To ensure network shares are mounted after the network is fully working, every network mount unit generated from the fstab needs an additional dependency on the [email protected] or [email protected]. Tested and working on x86_64 ARCH VM base install with soa-aur: Services Running: Code: -------------------- [root@soapvm ~]# systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION dbus.service loaded active running D-Bus System Message Bus [email protected] loaded active running Getty on tty1 kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel [email protected] loaded active running Automatic wired network connection using netctl profiles rpc-gssd.service loaded active running RPC GSS-API Client Daemon rpc-statd.service loaded active running NFS v2/3 Network Status Monitor Daemon rpcbind.service loaded active running RPC Bind soa-web.service loaded active running Squeeze on Arch Web Interface squeezelite.service loaded active running Squeezelite Player sshd.service loaded active running OpenSSH Daemon systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-modules-load.service loaded active exited Load Kernel Modules systemd-random-seed.service loaded active exited Load/Save Random Seed systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems systemd-sysctl.service loaded active exited Apply Kernel Variables systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories systemd-udev-trigger.service loaded active exited udev Coldplug all Devices systemd-udevd.service loaded active running udev Kernel Device Manager systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown systemd-user-sessions.service loaded active exited Permit User Sessions systemd-vconsole-setup.service loaded active exited Setup Virtual Console [email protected] loaded active running User Manager for UID 0 -------------------- Critical Chain: Code: -------------------- root@soapvm ~]# systemd-analyze critical-chain The time after the unit is active or started is printed after the "@" character. The time the unit takes to start is printed after the "+" character. graphical.target @4.073s └─multi-user.target @4.073s └─getty.target @4.073s └─[email protected] @4.072s └─systemd-user-sessions.service @4.037s +33ms └─remote-fs.target @4.002s └─mnt-disk1.mount @3.893s +107ms └─remote-fs-pre.target @3.883s └─nfs-client.target @3.883s └─rpc-statd.service @3.529s +353ms └─rpcbind.service @2.506s +648ms └─basic.target @2.478s └─timers.target @2.475s └─shadow.timer @2.475s └─sysinit.target @2.468s └─swap.target @2.467s └─dev-disk-by\x2duuid-dd5b2346\x2db151\x2d4e3f\x2d89d9\x2d5dbe22a8252a.swap @2.443s +22ms └─dev-disk-by\x2duuid-dd5b2346\x2db151\x2d4e3f\x2d89d9\x2d5dbe22a8252a.device @2.438s -------------------- Mounts at boot: Code: -------------------- [root@soapvm ~]# systemctl status mnt-disk1.mount ● mnt-disk1.mount - /mnt/disk1 Loaded: loaded (/etc/fstab) Drop-In: /etc/systemd/system/mnt-disk1.mount.d └─custom.conf Active: active (mounted) since Tue 2014-06-17 08:57:05 BST; 24s ago Where: /mnt/disk1 What: 192.168.0.20:/media/allmusic/ToFile Docs: man:fstab(5) man:systemd-fstab-generator(8) Process: 200 ExecMount=/bin/mount 192.168.0.20:/media/allmusic/ToFile /mnt/disk1 -t nfs -o ro,vers=3,_netdev (code=exited, status=0/SUCCESS) -------------------- Custom File: Code: -------------------- [root@soapvm ~]# cat /etc/systemd/system/mnt-disk1.mount.d/custom.conf [Unit] [email protected] -------------------- The custom.conf is the NB part. Hopefully you can reproduce this on your Wandboard. If so, would it be straightforward to amend the handler code behind the storage.html to create/destroy the appropriate mount unit custom.conf for each network share added or removed? ------------------------------------------------------------------------ Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080 View this thread: http://forums.slimdevices.com/showthread.php?t=101624 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
