]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Imported Debian patch 1.1.0-3 debian/1%1.1.0-3
authorAnibal Monsalve Salazar <anibal@debian.org>
Tue, 29 May 2007 10:38:36 +0000 (20:38 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 01:52:55 +0000 (02:52 +0100)
debian/changelog
debian/nfs-common.init

index 56808d67d4d736c45cd7ed50e9c0b4c0eae9715d..6a72d5cb69e814152210ffb6a079fa59eb1ad0ce 100644 (file)
@@ -1,3 +1,10 @@
+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
index c6b0a9a284ca79a4baf7011b14c4f68a6d15fa63..7cba6795f2227d0fd2686d2e6ba8ff16ed668a71 100644 (file)
@@ -36,21 +36,23 @@ fi
 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