hi,
I've set up Libreelec 8.2.4 (Kernel 4.9.59) on a Raspi 3 B+ and running into problems mounting a NAS via WLAN.
The directory on the NAS gets monted by system.d with this script:
-----------------------------------------------------------------------------------------
# The description should be used to explain what this servicefile is for
Description=Script to mount NAS libreelec folder
# if we do network mounts like here we *require* 'network-online.service'
# which checks if the network is online
Requires=network-online.service
# our scripts must start *after* 'network-online.service', on timeout and if
# 'network-online.service' fails we can not mount and this scripts fails too
After=network-online.service
# usually we mount networks shares because we want they avaible *before* XBMC starts.
# so XBMC has access to this mounts from beginning. Note: this slows down the boot!
Before=kodi.service
[Mount]
# The share we want mount
What=//<ip_of_my_NAS>/libreelec
# Where we want mount this share
Where=/media/<target_folder>
# Any options you usually use with the "-o" parameter in the mount command
Options=username=the_username,password=the_password,vers=1.0
# filesystem type
Type=cifs
[Install]
# The target is used by 'systemctl enable <name_of_this_file.mount>' to link
# this service to a runlevel for starting on boot. usually 'multi-user.target'
# is ok here.
WantedBy=multi-user.target
# Important:
# this file must be renamed to <mountpoint>.mount where <mountpoint>, is the FULL path
# where the share will be mounted but slashes "/" MUST BE REPLACED with dashes "-" with .mount
# as extension.
# This means, if we want mount to "/storage/music2" (see above "Where=/storage/music2")
# then this file must be renamed to 'storage-music2.mount' and can be enabled via ssh with the
# command 'systemctl enable storage-music2.mount'
Display More
-----------------------------------------------------------------------------------------
When I start the system, it immediately crashes. When I rename the mount script, system starts as expected and works. I think there must be a timing issue. Are there any options I can set in the script, for example to wait until WLAN is up?
When I connect via SSH to the system, I can mount manually the NAS directory without any problems.
TIA
KIbu