commit 46d869ec1afb962ccc57f36d7342a868698698be parent a471e9df2793b6e876aa1241eb1371679ca4fa0d Author: parazyd <parazyd@dyne.org> Date: Thu, 14 Apr 2016 18:52:11 +0200 probable fix for dev being unable to unmount Diffstat:
M | arm/common | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arm/common b/arm/common @@ -218,8 +218,8 @@ ${device_name}-thirdstage() { export DEBIAN_FRONTEND=noninteractive sudo -E mount -t proc proc ${strapdir}/proc && notice "Mounted proc..." - sudo -E mount -o bind /dev/ ${strapdir}/dev/ && notice "Mounted dev..." - sudo -E mount -o bind /dev/pts ${strapdir}/dev/pts && notice "Mounted dev/pts..." + sudo -E mount --rbind /dev/ ${strapdir}/dev/ && notice "Mounted dev..." + sudo -E mount --rbind /dev/pts ${strapdir}/dev/pts && notice "Mounted dev/pts..." notice "Chrooting..." LANG=C sudo -E chroot $strapdir /third-stage @@ -238,8 +238,8 @@ ${device_name}-thirdstage() { copy-zram - sudo umount ${strapdir}/dev/pts && notice "Unmounted dev/pts" - sudo umount ${strapdir}/dev && notice "Unmounted dev" + sudo umount -nR ${strapdir}/dev/pts && notice "Unmounted dev/pts" + sudo umount -nR ${strapdir}/dev && notice "Unmounted dev" sudo umount ${strapdir}/proc && notice "Unmounted proc" notice "Finalized third-stage" notice "Next step is: ${device_name}-prepimg"