fix unmount (#2874)

This commit is contained in:
Oleg 2021-06-04 20:41:42 +03:00 committed by GitHub
parent ddfa440814
commit 88b525117e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,11 +79,11 @@ debootstrap_ng()
fi
# stage: unmount tmpfs
umount_chroot "$SDCARD"
umount $SDCARD 2>&1
if [[ $use_tmpfs = yes ]]; then
while grep -qs "$SDCARD" /proc/mounts
do
umount_chroot "$SDCARD"
umount $SDCARD
sleep 5
done
fi