I have managed to solve my problem using "RequiresMountsFor=/storage/recordings" in the init.d unit of the tvheadend service.
Posts by Petruco
-
-
Hi. I'm using Leia 18.1, on Pi 3B+, with TVHeadend. My recordings folder is mapped to a folder in my NAS.
All is working OK when I mount the share manually, using systemctl start xx-xx.mount.
Codestorage-grabaciones.mount - cifs mount script Loaded: loaded (/storage/.config/system.d/storage-grabaciones.mount; enabled; vendor preset: disabled) Active: active (mounted) since Fri 2019-08-02 09:54:15 CEST; 21s ago Where: /storage/grabaciones What: //192.168.0.3/grabaciones CGroup: /system.slice/storage-grabaciones.mount Aug 02 09:54:15 LibreELEC systemd[1]: Mounting cifs mount script... Aug 02 09:54:15 LibreELEC systemd[1]: Mounted cifs mount script.However, when libreelec reboots, it does not automount the folder. Error message is as follows:
Code
Display Morestorage-grabaciones.mount - cifs mount script Loaded: loaded (/storage/.config/system.d/storage-grabaciones.mount; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2018-06-22 13:11:57 CEST; 1 years 1 months ago Where: /storage/grabaciones What: //192.168.0.3/grabaciones Jun 22 13:11:52 LibreELEC systemd[1]: Mounting cifs mount script... Jun 22 13:11:57 LibreELEC mount[381]: mount: mounting //192.168.0.3/grabaciones on /storage/grabaciones failed: Network is unreachable Jun 22 13:11:57 LibreELEC systemd[1]: storage-grabaciones.mount: Mount process exited, code=exited status=255 Jun 22 13:11:57 LibreELEC systemd[1]: storage-grabaciones.mount: Failed with result 'exit-code'. Jun 22 13:11:57 LibreELEC systemd[1]: Failed to mount cifs mount script.I'm using samba vers=2.1,_netdev and these other settings:
Code
Display More[Unit] Description=cifs mount script Requires=network-online.service After=network-online.service Before=kodi.service [Mount] What=//192.168.0.3/grabaciones Where=/storage/grabaciones Options=vers=2.1,_netdev,username=USERNAME,password=PASSWORD,rw Type=cifs [Install] WantedBy=multi-user.targetThe problem is really annoying, because my SD card is only 16GB and recording will fill it soon if the NAS share does not automount.
Can someone help me? Thanks!
