Added default wrappers for everything in the PATH for disco-fs-mount
This commit is contained in:
@@ -9,6 +9,20 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
umount ${DISCOROOT}/chroot
|
||||
umount ${DISCOROOT}/proc/proc
|
||||
|
||||
#Unmount the proc/sys mirrors if they were mounted
|
||||
mount | grep " on /${DISCOROOT}/proc/proc" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
mount -t proc -o ro none ${DISCOROOT}/proc/proc
|
||||
mount -t sysfs -o ro none ${DISCOROOT}/sysfs/sys
|
||||
fi
|
||||
mount | grep " on /${DISCOROOT}/sysfs/sys" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
mount -t sysfs -o ro none ${DISCOROOT}/sysfs/sys
|
||||
fi
|
||||
|
||||
umount ${DISCOROOT}/sysfs/sys
|
||||
umount ${DISCOROOT}/rootfs
|
||||
mount | grep $DISCOROOT > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user