Lars Eggert reports:

Installation of linux_base-7.1_2 fails when linprocfs is
	mounted.  Unmounting linprocfs before installing works
	around the issue.

At Lars' suggestion, this script also mounts the linprocfs after
installation.  I assume that if the user has a linprocfs entry in
/etc/fstab, the user wants it to be mounted.  It also seemed like
a good idea to un-mount it before de-installation.

PR:	46172
This commit is contained in:
Trevor Johnson 2003-06-10 14:57:03 +00:00
parent 1c3df409f6
commit 1cf930b9cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82685
6 changed files with 96 additions and 0 deletions

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac

View File

@ -12,6 +12,22 @@ PRE-INSTALL)
exit 1
fi
fi
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
;;
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
;;
esac