Same issue here, autofs, cifs-utils installed, working OK, Units correctly created [was working before], but stopped working after September update.
Strange is it mount CIFS during boot, but then its not mounted:
root@SERVER:/lib/systemd/system# journalctl -xe|grep upload
Oct 04 16:43:31 SERVER systemd[1]: Mounting /mnt/upload…
– Subject: A start job for unit mnt-upload.mount has begun execution
– A start job for unit mnt-upload.mount has begun execution.
Oct 04 16:43:32 SERVER kernel: CIFS: Attempting to mount //192.xx.yy.zz/upload
Oct 04 16:43:33 SERVER systemd[1]: Mounted /mnt/upload.
– Subject: A start job for unit mnt-upload.mount has finished successfully
– A start job for unit mnt-upload.mount has finished successfully.
Oct 04 16:45:47 SERVER systemd[1]: Unmounting /mnt/upload…
– Subject: A stop job for unit mnt-upload.mount has begun execution
– A stop job for unit mnt-upload.mount has begun execution.
Oct 04 16:45:48 SERVER systemd[475]: mnt-upload.mount: Succeeded.
Oct 04 16:45:48 SERVER systemd[1]: mnt-upload.mount: Succeeded.
– The unit mnt-upload.mount has successfully entered the ‘dead’ state.
Oct 04 16:45:48 SERVER systemd[1]: Unmounted /mnt/upload.
– Subject: A stop job for unit mnt-upload.mount has finished
– A stop job for unit mnt-upload.mount has finished.
Oct 04 16:45:48 SERVER systemd[1]: Mounting /mnt/upload…
– Subject: A start job for unit mnt-upload.mount has begun execution
– A start job for unit mnt-upload.mount has begun execution.
Oct 04 16:45:48 SERVER kernel: CIFS: Attempting to mount //192.xx.yy.zz/upload
Oct 04 16:45:48 SERVER systemd[1]: Mounted /mnt/upload.
– Subject: A start job for unit mnt-upload.mount has finished successfully
– A start job for unit mnt-upload.mount has finished successfully.
Oct 04 16:46:11 SERVER systemd[1]: Unmounting /mnt/upload…
– Subject: A stop job for unit mnt-upload.mount has begun execution
– A stop job for unit mnt-upload.mount has begun execution.
Oct 04 16:46:11 SERVER systemd[1]: mnt-upload.mount: Succeeded.
– The unit mnt-upload.mount has successfully entered the ‘dead’ state.
Oct 04 16:46:11 SERVER systemd[1]: Unmounted /mnt/upload.
– Subject: A stop job for unit mnt-upload.mount has finished
– A stop job for unit mnt-upload.mount has finished.
Oct 04 16:46:13 SERVER systemd[1]: mnt-upload.automount: Succeeded.
– The unit mnt-upload.automount has successfully entered the ‘dead’ state.
Oct 04 16:46:13 SERVER systemd[1]: Unset automount mnt-upload.automount.
– Subject: A stop job for unit mnt-upload.automount has finished
– A stop job for unit mnt-upload.automount has finished.
Oct 04 16:46:13 SERVER systemd[1]: Set up automount mnt-upload.automount.
– Subject: A start job for unit mnt-upload.automount has finished successfully
– A start job for unit mnt-upload.automount has finished successfully.
root@SERVER:/lib/systemd/system# df|grep upload
root@SERVER:/lib/systemd/system#
root@SERVER:/lib/systemd/system# pwd
/lib/systemd/system
root@SERVER:/lib/systemd/system# ll mnt-upload.mount
-rw-r–r-- 1 root root 393 Oct 4 16:45 mnt-upload.mount
root@SERVER:/lib/systemd/system# cat mnt-upload.mount
[Unit]
Description=Mount upload folder
Wants=connman.service network-online.target wpa_supplicant.service
After=connman.service network-online.target wpa_supplicant.service
[Mount]
What=//192.xx.yy.zz/upload
Where=/mnt/upload
Type=cifs
Options=x-systemd.automount,noperm,noauto,ro,iocharset=utf8,credentials=/etc/.credentials,uid=osmc,gid=osmc,vers=1.0 0 0
[Install]
WantedBy=network.target
It works OK, when I run it manually:
root@SERVER:/lib/systemd/system# systemctl status mnt-upload.mount
- mnt-upload.mount - /mnt/upload
Loaded: loaded (/etc/fstab; generated)
Active: inactive (dead)
TriggeredBy: * mnt-upload.automount
Where: /mnt/upload
What: //192.xx.yy.zz/upload
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
root@SERVER:/lib/systemd/system# systemctl restart mnt-upload.mount
root@SERVER:/lib/systemd/system# systemctl status mnt-upload.mount
- mnt-upload.mount - /mnt/upload
Loaded: loaded (/etc/fstab; generated)
Active: active (mounted) since Tue 2022-10-04 17:03:12 UTC; 2s ago
TriggeredBy: * mnt-upload.automount
Where: /mnt/upload
What: //192.xx.yy.zz/upload
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Tasks: 0 (limit: 975)
CPU: 63ms
CGroup: /system.slice/mnt-upload.mount
Oct 04 17:03:10 SERVER systemd[1]: Mounting /mnt/upload…
Oct 04 17:03:12 SERVER systemd[1]: Mounted /mnt/upload.
root@SERVER:/lib/systemd/system# df|grep upload
//192.xx.yy.zz/upload 5763789624 2124143864 3639543360 37% /mnt/upload
There is no spec. char in the /etc/.credentials
username=rpiuser
password=*******
But nothing after reboot.
Any idea? Thank you for help.