diff -u sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs --- sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs +++ sysvinit-2.86.ds1/debian/initscripts/etc/network/if-up.d/mountnfs @@ -105,6 +105,15 @@ # the problem of mount reporting an error status when # some filesystems are already mounted. + RUNLEVEL=`runlevel` + while [ "${RUNLEVEL}" = "unknown" ]; do + if ps aux | grep -q " sh /etc/rcS.d/S45waitnfs.sh start$"; then + break + fi + sleep 0.1 + RUNLEVEL=`runlevel` + done + pre_mountall mount_all_nfs post_mountall diff -u sysvinit-2.86.ds1/debian/changelog sysvinit-2.86.ds1/debian/changelog --- sysvinit-2.86.ds1/debian/changelog +++ sysvinit-2.86.ds1/debian/changelog @@ -1,3 +1,12 @@ +sysvinit (2.86.ds1-14.1ubuntu32) gutsy; urgency=low + + * debian/initscripts/etc/network/if-up.d/mountnfs + Apply fix by Georg C.F. Wolff as posted in Launnchpad. + Check the runlevel in a loop, sleep until established, + but break out if waitnfs runs. (LP: #44836) + + -- Dustin Kirkand Wed, 20 Feb 2008 21:55:28 -0600 + sysvinit (2.86.ds1-14.1ubuntu31) gutsy; urgency=low * Use 'mkdir -p' rather than more awkward test-then-create constructions.