OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 882 forks source link

Extra systemd mounts prevent systems rebooting after #4455 #4483

Closed MilhouseVH closed 8 years ago

MilhouseVH commented 8 years ago

After #4455, if you add a systemd mount and try to reboot, the system will hang while rebooting.

Add an nfs mount (following is an example, change paths etc. to suit circumstances):

[Unit]
Description=test nfs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service

[Mount]
What=192.168.1.66:/mnt/sdb2/PVR
Where=/storage/pvr
Options=
Type=nfs

[Install]
WantedBy=multi-user.target

Once the mount service has started and mounted the NFS share, try to reboot the system - It will stop all the services, then hang before rebooting.

If the connman-1.30 bump is reverted, the system does reboot normally. If there is no systemd mount, the system will also reboot normally with connman-1.30.

However, with connman-1.30 AND systemd mount, the system will hang at reboot.

mlade77 commented 8 years ago

Btw. in my case that happens only when I am using WiFi dongle. If I use cable that doesn't happen. https://github.com/OpenELEC/OpenELEC.tv/issues/4504

the-dreamer commented 8 years ago

in my case i have this problems only when i have more than one mount to use. my current workaround seems to be adding some mounts directly in kodi. my pvr / recordings folder is mounted on startup. the other mounts (music & pictures) directly in kodi without mount script.

reboot/shutdown hangs seems to be gone. tried with 01.01.2016 milhouse build and OE7 fritsch egl build. btw. i saw in my scripts leftovers from xbmc which i have renamed now.

EDIT: It seems to be in 1 of 10 reboots/shutdown also the single recordings mount hangs. For me it seems to be a timing problem.

EDIT 2: i am using only wired ethernet cable.

MainUser1 commented 8 years ago

In my case this also happens when using a wired connection.

I think it should be noted, that network booting OpenELEC from NFS also breaks reboot / shutdown. There doesn't seem to be a usable workaround in this situation.

I'm more than willing to help if there is something I can do to track this issue down.

MilhouseVH commented 8 years ago

If you have this problem can you test build #0205 as this build contains a potential fix, and report your results:

RPi1/RPi2: http://forum.kodi.tv/showthread.php?tid=250817 x86: http://forum.kodi.tv/showthread.php?tid=238393

Note: these test builds are based on OE8/Kodi 17, and database upgrades will most likely occur (you can drop the new databases once you revert back to your existing builds).

chewitt commented 8 years ago

closing as resolved in #4659