| Index: src/scripts/mod_image_for_test.sh
|
| diff --git a/src/scripts/mod_image_for_test.sh b/src/scripts/mod_image_for_test.sh
|
| index 98706d92d238e88ad746b87ff2d0767e744deddc..ef783a98d034bab0e049ba06ee2cf362eb89c2ee 100755
|
| --- a/src/scripts/mod_image_for_test.sh
|
| +++ b/src/scripts/mod_image_for_test.sh
|
| @@ -50,6 +50,10 @@ cleanup_rootfs_mounts() {
|
| echo "Killing process that has open file on our rootfs: $cmdline"
|
| ! sudo kill $pid # Preceded by ! to disable ERR trap.
|
| done
|
| + if [[ -d "${ROOT_FS_DIR}/modify_scripts" ]]; then
|
| + echo "Cleaned up modify_scripts mount"
|
| + ! sudo umount "${ROOT_FS_DIR}/modify_scripts"
|
| + fi
|
| }
|
|
|
| cleanup_rootfs_loop() {
|
| @@ -97,6 +101,7 @@ fi
|
|
|
| MOD_SCRIPTS_ROOT="${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts"
|
| sudo mkdir -p "${ROOT_FS_DIR}/modify_scripts"
|
| +
|
| sudo mount --bind "${MOD_SCRIPTS_ROOT}" "${ROOT_FS_DIR}/modify_scripts"
|
|
|
| # Run test setup script inside chroot jail to modify the image
|
|
|