diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2003-06-10 14:57:03 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2003-06-10 14:57:03 +0000 |
commit | 1cf930b9cc211aa20984abf7e5ded57d9b05f113 (patch) | |
tree | bdeff38aac42cdb05209e8ea863450ed21640bfc /emulators/linux_base-suse-9.1 | |
parent | 1c3df409f626ae3a9b5b2a48ced91a13334336fe (diff) | |
download | ports-1cf930b9cc211aa20984abf7e5ded57d9b05f113.tar.gz ports-1cf930b9cc211aa20984abf7e5ded57d9b05f113.zip |
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
Notes
Notes:
svn path=/head/; revision=82685
Diffstat (limited to 'emulators/linux_base-suse-9.1')
-rw-r--r-- | emulators/linux_base-suse-9.1/pkg-install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/linux_base-suse-9.1/pkg-install b/emulators/linux_base-suse-9.1/pkg-install index 7846395642ef..2d569a739289 100644 --- a/emulators/linux_base-suse-9.1/pkg-install +++ b/emulators/linux_base-suse-9.1/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 |