Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f570d77c authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: debug why umount is failing..


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 2f9bc418
No related merge requests found
......@@ -150,14 +150,17 @@ chroot_mount () {
chroot_umount () {
if [ "$(mount | grep ${tempdir}/dev/pts | awk '{print $3}')" = "${tempdir}/dev/pts" ] ; then
echo "Log: umount: [${tempdir}/dev/pts]"
sudo umount -f ${tempdir}/dev/pts
fi
if [ "$(mount | grep ${tempdir}/proc | awk '{print $3}')" = "${tempdir}/proc" ] ; then
echo "Log: umount: [${tempdir}/proc]"
sudo umount -f ${tempdir}/proc
fi
if [ "$(mount | grep ${tempdir}/sys | awk '{print $3}')" = "${tempdir}/sys" ] ; then
echo "Log: umount: [${tempdir}/sys]"
sudo umount -f ${tempdir}/sys
fi
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment