From: Cristian Ionescu-Idbohrn Date: Thu, 26 Aug 2010 03:27:14 +0000 (+0100) Subject: nfs-common.init: Ignore empty and commented-out fstab lines (Closes: #587329) X-Git-Tag: debian/1%1.2.2-4~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1129ba0d0fcfd45123c6ba17f7a7aeeb24b11e61;p=nfs-utils.git nfs-common.init: Ignore empty and commented-out fstab lines (Closes: #587329) --- diff --git a/debian/changelog b/debian/changelog index 31584ad..8167d72 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 26 Aug 2010 03:39:40 +0100 diff --git a/debian/nfs-common.init b/debian/nfs-common.init index dc93bea..9f5ebf5 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -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