]> err.no Git - util-linux/commitdiff
If nfs-common is not installed, skip nfs check
authorLaMont Jones <lamont@mmjgroup.com>
Tue, 7 Aug 2007 15:28:17 +0000 (09:28 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Tue, 7 Aug 2007 16:41:55 +0000 (10:41 -0600)
debian/mount.preinst

index f9fb1f6d39eb23ec894111673b962604696b222a..5717239a08043ed1a57e033d18ccdd5d9a67a791 100644 (file)
@@ -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=""