mediatek: mt7622: fix sysupgrade on MMC on BPi-R64

A previous attempt to simplify things went wrong and now sysupgrade
is broken on this device. Fix that.

Fixes: d640cbac0e ("mediatek: mt7622: don't rely on existing image for sysupgrade")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2023-01-16 21:00:41 +00:00 committed by AmadeusGhost
parent 9c56a0617d
commit 55780024d3

View File

@ -8,6 +8,7 @@ platform_do_upgrade() {
bananapi,bpi-r64) bananapi,bpi-r64)
local rootdev="$(cmdline_get_var root)" local rootdev="$(cmdline_get_var root)"
rootdev="${rootdev##*/}" rootdev="${rootdev##*/}"
rootdev="${rootdev%p[0-9]*}"
case "$rootdev" in case "$rootdev" in
mmc*) mmc*)
CI_ROOTDEV="$rootdev" CI_ROOTDEV="$rootdev"