Comment 7 for bug 2055806

Revision history for this message
JakFrost (jakfrost273) wrote :

I've changed the Unit files for the mount and automount points and will see if this was the cause of the unit ordering issue. I commented out the Requires= files and just left the After= files to create a softer dependency tree.

```
''# cat mnt-xbmc\\x2ddata.mount''

[Unit]
Description=mount cifs \\xbmc\data to /mnt/xbmc-data
#Requires=network-online.target nss-lookup.target systemd-resolved.service
After=remote-fs-pre.target network-online.target nss-lookup.target systemd-resolved.service

[Mount]
Where=/mnt/xbmc-data
What=//xbmc/data
Type=cifs
Options=credentials=/etc/samba/xbmc-smbuser.cred

[Install]
WantedBy=multi-user.target
```

```
''root@htpc:/etc/systemd/system# cat mnt-xbmc\\x2ddata.automount''

[Unit]
Description=automount cifs \\xbmc\data to /mnt/xbmc-data
#Requires=remote-fs-pre.target
After=remote-fs-pre.target network-online.target nss-lookup.target systemd-resolved.service

[Automount]
Where=/mnt/xbmc-data
TimeoutIdleSec=0

[Install]
WantedBy=remote-fs.target
```