aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-06-10 22:57:03 +0800
committertrevor <trevor@FreeBSD.org>2003-06-10 22:57:03 +0800
commit2b8b5004794bb0a818b8848f0b2075efe0d0001f (patch)
tree320945cb28e9a23ab176d169c6c64ebcc90858cd
parenta92b68bdc5534026fe272f4e6ca0065130098b9f (diff)
downloadfreebsd-ports-gnome-2b8b5004794bb0a818b8848f0b2075efe0d0001f.tar.gz
freebsd-ports-gnome-2b8b5004794bb0a818b8848f0b2075efe0d0001f.tar.zst
freebsd-ports-gnome-2b8b5004794bb0a818b8848f0b2075efe0d0001f.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
-rw-r--r--emulators/linux_base-8/pkg-install16
-rw-r--r--emulators/linux_base-rh-9/pkg-install16
-rw-r--r--emulators/linux_base-suse-9.1/pkg-install16
-rw-r--r--emulators/linux_base-suse-9.2/pkg-install16
-rw-r--r--emulators/linux_base-suse-9.3/pkg-install16
-rw-r--r--emulators/linux_base/pkg-install16
6 files changed, 96 insertions, 0 deletions
diff --git a/emulators/linux_base-8/pkg-install b/emulators/linux_base-8/pkg-install
index 7846395642ef..2d569a739289 100644
--- a/emulators/linux_base-8/pkg-install
+++ b/emulators/linux_base-8/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
diff --git a/emulators/linux_base-rh-9/pkg-install b/emulators/linux_base-rh-9/pkg-install
index 7846395642ef..2d569a739289 100644
--- a/emulators/linux_base-rh-9/pkg-install
+++ b/emulators/linux_base-rh-9/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
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
diff --git a/emulators/linux_base-suse-9.2/pkg-install b/emulators/linux_base-suse-9.2/pkg-install
index 7846395642ef..2d569a739289 100644
--- a/emulators/linux_base-suse-9.2/pkg-install
+++ b/emulators/linux_base-suse-9.2/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
diff --git a/emulators/linux_base-suse-9.3/pkg-install b/emulators/linux_base-suse-9.3/pkg-install
index 7846395642ef..2d569a739289 100644
--- a/emulators/linux_base-suse-9.3/pkg-install
+++ b/emulators/linux_base-suse-9.3/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
diff --git a/emulators/linux_base/pkg-install b/emulators/linux_base/pkg-install
index 7846395642ef..2d569a739289 100644
--- a/emulators/linux_base/pkg-install
+++ b/emulators/linux_base/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