summaryrefslogtreecommitdiff
path: root/scripts/image_signing/ensure_no_password.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/ensure_no_password.sh')
-rwxr-xr-xscripts/image_signing/ensure_no_password.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/image_signing/ensure_no_password.sh b/scripts/image_signing/ensure_no_password.sh
index de01f92a..5df68456 100755
--- a/scripts/image_signing/ensure_no_password.sh
+++ b/scripts/image_signing/ensure_no_password.sh
@@ -18,12 +18,13 @@ main() {
local image="$1"
- local rootfs
+ local loopdev rootfs
if [[ -d "${image}" ]]; then
rootfs="${image}"
else
rootfs=$(make_temp_dir)
- mount_image_partition_ro "${image}" 3 "${rootfs}"
+ loopdev=$(loopback_partscan "${image}")
+ mount_loop_image_partition_ro "${loopdev}" 3 "${rootfs}"
fi
if ! no_chronos_password "${rootfs}"; then