summaryrefslogtreecommitdiff
path: root/scripts/image_signing/tag_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/tag_image.sh')
-rwxr-xr-xscripts/image_signing/tag_image.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/image_signing/tag_image.sh b/scripts/image_signing/tag_image.sh
index 53afe788..b130fa19 100755
--- a/scripts/image_signing/tag_image.sh
+++ b/scripts/image_signing/tag_image.sh
@@ -206,8 +206,10 @@ process_all_tags "${rootfs}" ${FLAGS_FALSE}
process_all_lsb_mods "${rootfs}" ${FLAGS_FALSE}
if [ ${g_modified} = ${FLAGS_TRUE} ]; then
- # Remount as RW.
- sudo mount -o rw,remount "${rootfs}"
+ # Remount as RW. We can't use `mount -o rw,remount` because of the bits in
+ # the ext4 header we've set to block that. See enable_rw_mount for details.
+ sudo umount "${rootfs}"
+ mount_loop_image_partition "${loopdev}" 3 "${rootfs}"
# second round, apply the modification to image.
process_all_tags "${rootfs}" ${FLAGS_TRUE}