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 ```
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.
``` \x2ddata. mount''
''# cat mnt-xbmc\
[Unit] network- online. target nss-lookup.target systemd- resolved. service fs-pre. target network- online. target nss-lookup.target systemd- resolved. service
Description=mount cifs \\xbmc\data to /mnt/xbmc-data
#Requires=
After=remote-
[Mount] mnt/xbmc- data credentials= /etc/samba/ xbmc-smbuser. cred
Where=/
What=//xbmc/data
Type=cifs
Options=
[Install] multi-user. target
WantedBy=
```
``` htpc:/etc/ systemd/ system# cat mnt-xbmc\ \x2ddata. automount' '
''root@
[Unit] automount cifs \\xbmc\data to /mnt/xbmc-data remote- fs-pre. target fs-pre. target network- online. target nss-lookup.target systemd- resolved. service
Description=
#Requires=
After=remote-
[Automount] mnt/xbmc- data
Where=/
TimeoutIdleSec=0
[Install] remote- fs.target
WantedBy=
```