From: LaMont Jones Date: Tue, 7 Aug 2007 15:28:17 +0000 (-0600) Subject: If nfs-common is not installed, skip nfs check X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d106a22ab432628eca4e2b82086359bd80bf2d;p=util-linux If nfs-common is not installed, skip nfs check --- diff --git a/debian/mount.preinst b/debian/mount.preinst index f9fb1f6d..5717239a 100644 --- a/debian/mount.preinst +++ b/debian/mount.preinst @@ -19,7 +19,7 @@ case "$1" in version=$2 export LANG=C # for the comparison of mail version... - if [ -f /proc/mounts ]; then + if [ -f /var/lib/dpkg/info/nfs-common.list ] && [ -f /proc/mounts ]; then NFS_IN_USE=$(sed -n '/^[^ ]* [^ ]* nfs /p' /proc/mounts) else NFS_IN_USE=""