mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-08 00:45:25 +00:00
image_signing: allow input rootfs to be a directory
This allows for quick local testing by creating a dummy rootfs. BUG=chromium:714598 TEST=signing images still works BRANCH=None Change-Id: If252b119fd64686b46e9989d55bedbd1eec45700 Reviewed-on: https://chromium-review.googlesource.com/680039 Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: David Riley <davidriley@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
b613faf5cd
commit
a2ccb41cbc
@@ -123,8 +123,15 @@ main() {
|
||||
info "Loading config from ${configfile}"
|
||||
. "$configfile" || return 1
|
||||
|
||||
local rootfs=$(make_temp_dir)
|
||||
mount_image_partition_ro "$image" 3 "$rootfs"
|
||||
local rootfs
|
||||
if [[ -d "${image}" ]]; then
|
||||
# We're given a mounted rootfs.
|
||||
rootfs="${image}"
|
||||
else
|
||||
# Mount the disk image.
|
||||
rootfs=$(make_temp_dir)
|
||||
mount_image_partition_ro "$image" 3 "$rootfs"
|
||||
fi
|
||||
local lsb="$rootfs/$LSB_FILE"
|
||||
|
||||
# Basic syntax check first.
|
||||
|
||||
Reference in New Issue
Block a user