fix(build_library/disk_layout_util.sh): unmount rootfs

Sometimes during the buildprocess we get here and the rootfs is still mounted?!

Change-Id: I6dc044d9d1318be606c1645f925421fa84c1f513
This commit is contained in:
Brandon Philips 2013-02-14 16:26:48 -08:00
parent 005de74765
commit 78e2afafea

View File

@ -61,6 +61,7 @@ run_partition_script() {
;; ;;
esac esac
safe_umount "${root_fs_dir}"
sudo mount -o loop "${root_fs_img}" "${root_fs_dir}" sudo mount -o loop "${root_fs_img}" "${root_fs_dir}"
. "${root_fs_dir}/${PARTITION_SCRIPT_PATH}" . "${root_fs_dir}/${PARTITION_SCRIPT_PATH}"
write_partition_table "${outdev}" "${pmbr_img}" write_partition_table "${outdev}" "${pmbr_img}"