From 6f326a119aa2941450b915fbbf3c4e0ed9846c3d Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Feb 18 2020 23:18:47 +0000 Subject: more race conditions --- diff --git a/04-edit-fstab.sh b/04-edit-fstab.sh index 7c0f7fc..098d8b5 100644 --- a/04-edit-fstab.sh +++ b/04-edit-fstab.sh @@ -41,6 +41,7 @@ then cat files/fstab > rootfs/etc/fstab infecho "Unmounting root file system..." + sleep 3 umount $PP_PARTB rmdir rootfs fi diff --git a/05-setup-user.sh b/05-setup-user.sh index 9df48e5..161ed19 100644 --- a/05-setup-user.sh +++ b/05-setup-user.sh @@ -42,9 +42,10 @@ then cp phone-scripts/* rootfs/root infecho "Chrooting with qemu into rootfs..." - chroot /tmp/root qemu-aarch64-static /bin/bash all.sh + chroot rootfs qemu-aarch64-static /bin/bash all.sh infecho "Unmounting rootfs..." + sleep 3 umount $PP_PARTB rmdir rootfs fi