mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
Use %U on dm-verity boots on arm
BUG=chrome-os-partner:4662,chrome-os-partner:3198 TEST=run recovery Change-Id: I54372737dc75ed19d4361e8d58a50511c34336b1 Reviewed-on: http://gerrit.chromium.org/gerrit/3226 Tested-by: Nick Sanders <nsanders@chromium.org> Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Reviewed-by: Will Drewry <wad@chromium.org>
This commit is contained in:
parent
61e2bff39e
commit
ffd0ca6f36
@ -112,11 +112,7 @@ if [[ -n "${FLAGS_rootfs_image}" && -n "${FLAGS_rootfs_hash}" ]]; then
|
||||
# the verified boot device. Doing so will claim /dev/sdDP out from
|
||||
# under the system.
|
||||
if [[ ${FLAGS_root} = "/dev/dm-0" ]]; then
|
||||
if [[ "${FLAGS_arch}" = "x86" ]]; then
|
||||
base_root='%U+1' # kern_guid + 1
|
||||
elif [[ "${FLAGS_arch}" = "arm" ]]; then
|
||||
base_root='/dev/${devname}${rootpart}'
|
||||
fi
|
||||
table=${table//HASH_DEV/${base_root}}
|
||||
table=${table//ROOT_DEV/${base_root}}
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user