tprobable fix for dev being unable to unmount - arm-sdk - os build toolkit for various embedded devices HTML git clone https://git.parazyd.org/arm-sdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 46d869ec1afb962ccc57f36d7342a868698698be DIR parent a471e9df2793b6e876aa1241eb1371679ca4fa0d HTML 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(-) --- DIR diff --git a/arm/common b/arm/common t@@ -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 t@@ -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"