Comment 13 for bug 285013

Revision history for this message
Ruairi Hickey (ruairi-hickey) wrote :

A work-around which works well is to have a script mount the nfsv4 shares

#!/bin/sh
IF=$1
STATUS=$2

if [ "$IF" = "eth0" ] && [ "$STATUS" = "down" ] ; then
# if [ `/usr/bin/stat -fc%t:%T /shared` != `/usr/bin/stat -fc%t:%T /` ]; then
     /bin/umount /shared
# fi
fi
if [ "$IF" = "eth0" ] && [ "$STATUS" = "up" ] ; then
     /bin/mount /home
fi

exit

============================================================

and also modify the lightdm start script to wait on mounted /home

start on ((filesystem
           and runlevel [!06]
           and started dbus
           and plymouth-ready)
           and mounted MOUNTPOINT=/home
          or runlevel PREVLEVEL=S)

R.