23rd Jan, 2014, 02:56 AM
Hello,
Last week I decided to try Xbian (beta 2) on my RPi, every thing went perfectly until I configured my nfs share in /etc/fstab:
After that configuration XBMC did not autostart anymore after reboot and loging prompt was shown.
I investigated it and the problem was that XBMC service was not started by upstart because conditions were not met.
xbmc.conf start conditions:
And those conditions were not met because of "xbian-nowait" and "autofs" part.
I think that autofs is not installed by default in my system so it will never start.
And xbian-nowait event is only raised by "mountall" if no nfs shares are configured.
I was able to workarround the problem changing xbmc.conf start conditions to:
But I'm not sure why that condition was included and it may be a more elegant solution to just delay a little the XBMC start if a nfs share is configured.
I could not find any related topic so maybe I'm doing something wrong...
Best regards
Last week I decided to try Xbian (beta 2) on my RPi, every thing went perfectly until I configured my nfs share in /etc/fstab:
Code:
server:/media/share /mnt/nas nfs udp,rw,noatime,nolock 0 0
After that configuration XBMC did not autostart anymore after reboot and loging prompt was shown.
I investigated it and the problem was that XBMC service was not started by upstart because conditions were not met.
xbmc.conf start conditions:
Code:
start on started xbmc-preload and started dbus and (started autofs or xbian-nowait)
And those conditions were not met because of "xbian-nowait" and "autofs" part.
I think that autofs is not installed by default in my system so it will never start.
And xbian-nowait event is only raised by "mountall" if no nfs shares are configured.
Code:
grep -v ^# /etc/fstab| awk '{print $3}' | sort | grep -q 'nfs\|nfs4' || initctl emit -n xbian-nowait || :
I was able to workarround the problem changing xbmc.conf start conditions to:
Code:
start on started xbmc-preload and started dbus
But I'm not sure why that condition was included and it may be a more elegant solution to just delay a little the XBMC start if a nfs share is configured.
I could not find any related topic so maybe I'm doing something wrong...
Best regards