summaryrefslogtreecommitdiff
path: root/scripts/image_signing/set_channel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/set_channel.sh')
-rwxr-xr-xscripts/image_signing/set_channel.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/image_signing/set_channel.sh b/scripts/image_signing/set_channel.sh
index a3bd4f97..0ab4ef16 100755
--- a/scripts/image_signing/set_channel.sh
+++ b/scripts/image_signing/set_channel.sh
@@ -24,11 +24,12 @@ fi
main() {
local image=$1
local to=$2
- local rootfs lsb
+ local loopdev rootfs lsb
+ loopdev=$(loopback_partscan "${image}")
rootfs=$(make_temp_dir)
lsb="${rootfs}/etc/lsb-release"
- mount_image_partition "${image}" 3 "${rootfs}"
+ mount_loop_image_partition "${loopdev}" 3 "${rootfs}"
# Get the current channel on the image.
local from=$(lsbval "${lsb}" 'CHROMEOS_RELEASE_TRACK')
from=${from%"-channel"}