mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
Changed to use /dev/dm* instead of /dev/dm-0
Changed update_kernel.sh to use /dev/dm* to mean verity is being used instead of /dev/dm-0. BUG=chromium-os:25441 TEST=Used update_kernel.sh to update kernel on stumpy Change-Id: I187fe0b43c65a6bfa7a689d31ae2cfd86fda558f Reviewed-on: https://gerrit.chromium.org/gerrit/33797 Tested-by: Paul Taysom <taysom@chromium.org> Reviewed-by: Mandeep Singh Baines <msb@chromium.org> Commit-Ready: Paul Taysom <taysom@chromium.org>
This commit is contained in:
parent
b78a7c3569
commit
a64d9dbb58
@ -43,9 +43,8 @@ learn_device() {
|
||||
learn_partition_and_ro() {
|
||||
[ -n "${FLAGS_partition}" ] && return
|
||||
! remote_sh rootdev
|
||||
if [ "${REMOTE_OUT}" == "/dev/dm-0" ]; then
|
||||
remote_sh ls /sys/block/dm-0/slaves
|
||||
REMOTE_OUT="/dev/${REMOTE_OUT}"
|
||||
if [ "${REMOTE_OUT%%-*}" == "/dev/dm" ]; then
|
||||
remote_sh rootdev -s
|
||||
REMOTE_VERITY=${FLAGS_TRUE}
|
||||
info "System is using verity: not updating firmware"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user