summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-10-13 00:29:15 +0000
committertrevor <trevor@FreeBSD.org>2003-10-13 00:29:15 +0000
commitf1b2baf66afb1b728868e38ca379f48b68242947 (patch)
tree676f29620c82e62157bff220611bc93321a5a44d
parent084b4bc8d80ff7952a0543c63b5add8a02486110 (diff)
downloadFreeBSD-ports-f1b2baf66afb1b728868e38ca379f48b68242947.zip
FreeBSD-ports-f1b2baf66afb1b728868e38ca379f48b68242947.tar.gz
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
-rw-r--r--emulators/linux_base-6/pkg-install16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/linux_base-6/pkg-install b/emulators/linux_base-6/pkg-install
index 7846395..2d569a7 100644
--- a/emulators/linux_base-6/pkg-install
+++ b/emulators/linux_base-6/pkg-install
@@ -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
OpenPOWER on IntegriCloud