From 1aa76b55243bc9a428f64c0b18c15f5f46832947 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Oct 04 2016 14:02:14 +0000 Subject: fix umount in chrooter --- diff --git a/chrooter/chrooter.sh b/chrooter/chrooter.sh index 98b4659..65a653a 100755 --- a/chrooter/chrooter.sh +++ b/chrooter/chrooter.sh @@ -72,7 +72,9 @@ image_unmount() { fi echo "Unmount subs" - sudo "/tmp/$INSTANCE_NAME.umount.sh" + sudo "/tmp/$INSTANCE_NAME.umount.sh" \ + || (echo "next try after 10 seconds" && sleep 10 && sudo "/tmp/$INSTANCE_NAME.umount.sh") \ + || (echo "final try after 10 seconds" && sleep 10 && sudo "/tmp/$INSTANCE_NAME.umount.sh") sudo rm -f "/tmp/$INSTANCE_NAME.umount.sh" echo "Remove -.chroot.sh file"