]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-common.init: Ignore empty and commented-out fstab lines (Closes: #587329)
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Thu, 26 Aug 2010 03:27:14 +0000 (04:27 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 26 Aug 2010 03:28:33 +0000 (04:28 +0100)
debian/changelog
debian/nfs-common.init

index 31584ad45f25e0121b0e01be585d53897d2cdee6..8167d729731878561941006704be43d679bea534 100644 (file)
@@ -1,6 +1,8 @@
 nfs-utils (1:1.2.2-4) UNRELEASED; urgency=low
 
   * mountd: fix path comparison for v4 crossmnt (Closes: #578317)
+  * nfs-common.init: Ignore empty and commented-out fstab lines, thanks
+    to Cristian Ionescu-Idbohrn (Closes: #587329)
 
  -- Ben Hutchings <ben@decadent.org.uk>  Thu, 26 Aug 2010 03:39:40 +0100
 
index dc93bea0846a3a13f080b793259339b26982ab19..9f5ebf5bbca87ae2e67cdd453b449e0aa9a771ce 100644 (file)
@@ -45,6 +45,11 @@ if [ -f /etc/fstab ]; then
 
     while read DEV MTPT FSTYPE OPTS REST
     do
+       case $DEV in
+           ''|\#*)
+               continue
+               ;;
+       esac
         if [ "$FSTYPE" = "nfs4" ]; then
             AUTO_NEED_IDMAPD=yes
         fi