summaryrefslogtreecommitdiff
path: root/scripts/image_signing/remove_test_label.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/remove_test_label.sh')
-rwxr-xr-xscripts/image_signing/remove_test_label.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/image_signing/remove_test_label.sh b/scripts/image_signing/remove_test_label.sh
index 6423e390..2df7c02d 100755
--- a/scripts/image_signing/remove_test_label.sh
+++ b/scripts/image_signing/remove_test_label.sh
@@ -13,6 +13,7 @@
set -e
image=$1
+loopdev=$(loopback_partscan "${image}")
rootfs=$(make_temp_dir)
-mount_image_partition ${image} 3 ${rootfs}
+mount_loop_image_partition "${loopdev}" 3 "${rootfs}"
sed -i 's/test//' "${rootfs}/etc/lsb-release"