[Bug 285013] Re: nfs shares are not automounted anymore in intrepid

Ruairi Hickey ruairi.hickey at collon.ie
Tue Oct 8 21:36:57 UTC 2013


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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/285013

Title:
  nfs shares are not automounted anymore in intrepid

Status in “sysvinit” package in Ubuntu:
  Fix Released

Bug description:
  Here is a new Intrepid regression.

  After updating from hardy to intrepid, nfs shares are not mounted
  automatically because (I think) the network is not up before Network
  Manager kicks in.

  I have fixed this issue with this ugly hack in
  /etc/rcS.d/S99mountall.sh :

  dhclient eth0
  mount -a

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/285013/+subscriptions



More information about the foundations-bugs mailing list