+nfs-utils (1:1.1.0-12) unstable; urgency=low
+
+ * Yet another round of fixing the boot issues, mostly in nfs-common.init:
+ * Be a bit smarter about setting AUTO_NEED_IDMAPD; check not only that
+ /etc/exports exists, but also that it contains things that look like
+ uncommented exports.
+ * Don't exit 0 immediately if statd, idmapd (if enabled) or gssd (if
+ enabled) can't be found, as we might need statd to get /usr up even if we
+ can't get to idmapd and gssd. (The AUTO_NEED_IDMAPD fix above should fix
+ the default situation, but it's good to take a bit of extra care.)
+ Instead, start statd regardless, and just skip idmapd and gssd starting
+ (set NEED_{IDMAPD,GSSD}=no) if it can't be found.
+ * Let nfs-common depend on initscripts (>= 2.86.ds1-38.1) to make sure we
+ have a version with the proper mountnfs logic.
+
+ -- Steinar H. Gunderson <sesse@debian.org> Wed, 25 Jul 2007 01:27:48 +0200
+
nfs-utils (1:1.1.0-11) unstable; urgency=low
* Include the nfs man page, which was also forgotten. The new nfs man page
Package: nfs-common
Architecture: any
-Depends: portmap | rpcbind, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), ${shlibs:Depends}
+Depends: portmap | rpcbind, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), initscripts (>= 2.86.ds1-38.1), ${shlibs:Depends}
Provides: nfs-client
Conflicts: nfs-client
Replaces: nfs-client, nfs-kernel-server (<< 1:1.0.7-5), mount (<< 2.13~)
# condition in nfs-kernel-server's init script does, which has a value in
# itself.
#
-if [ -f /etc/exports ]; then
+if [ -f /etc/exports ] && grep -q '^ .*/' /etc/exports; then
AUTO_NEED_IDMAPD=yes
fi
;;
esac
-# Exit if required binaries are missing.
-[ -x $PREFIX/sbin/rpc.statd ] || exit 0
-[ -x /usr/sbin/rpc.idmapd ] || [ "$NEED_IDMAPD" = no ] || exit 0
-[ -x /usr/sbin/rpc.gssd ] || [ "$NEED_GSSD" = no ] || exit 0
-
do_modprobe() {
if [ -x /sbin/modprobe -a -f /proc/modules ]
then
exit $?
fi
+ # Don't start idmapd and gssd if we don't have them (say, if /usr is not
+ # up yet).
+ [ -x /usr/sbin/rpc.idmapd ] || NEED_IDMAPD=no
+ [ -x /usr/sbin/rpc.gssd ] || NEED_GSSD=no
+
if [ "$NEED_IDMAPD" = yes ] || [ "$NEED_GSSD" = yes ]
then
do_modprobe nfs