]> err.no Git - util-linux/commitdiff
mount.preinst: deal with no /proc/mounts
authorLaMont Jones <lamont@mmjgroup.com>
Fri, 3 Aug 2007 15:57:32 +0000 (09:57 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Fri, 3 Aug 2007 15:57:32 +0000 (09:57 -0600)
debian/changelog
debian/mount.preinst

index 3c53faf471ee349ba49ec186e1b62d056c8b468b..b32fd531b7c1752a603e5d282ea8ae29678da81c 100644 (file)
@@ -2,8 +2,9 @@ util-linux (2.13~rc2-6) unstable-UNRELEASED; urgency=low
 
   * More fixes from upstream
   * swapoff: handle UUID= and LABEL=.  Closes: #435555
+  * mount.preinst: deal with no /proc/mounts.
 
- -- LaMont Jones <lamont@debian.org>  Thu,  2 Aug 2007 08:35:32 -0600
+ -- LaMont Jones <lamont@debian.org>  Fri,  3 Aug 2007 09:56:43 -0600
 
 util-linux (2.13~rc2-5) unstable; urgency=low
 
index adf4175890e52520f56a0b32287523236e29c11a..f9fb1f6d39eb23ec894111673b962604696b222a 100644 (file)
@@ -19,7 +19,11 @@ case "$1" in
        version=$2
        export LANG=C   # for the comparison of mail version...
 
-       NFS_IN_USE=$(sed -n '/^[^ ]* [^ ]* nfs /p' /proc/mounts)
+       if [ -f /proc/mounts ]; then
+           NFS_IN_USE=$(sed -n '/^[^ ]* [^ ]* nfs /p' /proc/mounts)
+       else
+           NFS_IN_USE=""
+       fi
        if [ -n "$NFS_IN_USE" ] && [ ! -x /sbin/mount.nfs ] ; then
            cat << EOF
 You have NFS mount points currently mounted, and this version of mount