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:
parent
1c3df409f6
commit
1cf930b9cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82685
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user