+nfs-utils (1:1.1.0-3) unstable; urgency=low
+
+ * Fixed "nfs-common - fails to install without /etc/fstab".
+ Closes: #426508.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org> Tue, 29 May 2007 20:38:36 +1000
+
nfs-utils (1:1.1.0-2) unstable; urgency=low
* Make sure rpcsec_gss_krb5 is loaded if needed in nfs-kernel-server. It
AUTO_NEED_IDMAPD=no
AUTO_NEED_GSSD=no
-exec 9<&0 </etc/fstab
+if [ -f /etc/fstab ]; then
+ exec 9<&0 </etc/fstab
-while read DEV MTPT FSTYPE OPTS REST
-do
- if [ "$FSTYPE" = "nfs4" ]; then
- AUTO_NEED_IDMAPD=yes
- fi
- case "$OPTS" in
- sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
- AUTO_NEED_GSSD=yes
- ;;
- esac
-done
-
-exec 0<&9 9<&-
+ while read DEV MTPT FSTYPE OPTS REST
+ do
+ if [ "$FSTYPE" = "nfs4" ]; then
+ AUTO_NEED_IDMAPD=yes
+ fi
+ case "$OPTS" in
+ sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
+ AUTO_NEED_GSSD=yes
+ ;;
+ esac
+ done
+
+ exec 0<&9 9<&-
+fi
#
# We also need idmapd if we run an NFSv4 server. It's fairly difficult