From 86a2dae29a7391f83a0b8d2f85828f72c834b17e Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 16 Jan 2023 21:00:41 +0000 Subject: [PATCH] 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 --- target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index e62eba7ef1..d3d503dd1e 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -8,6 +8,7 @@ platform_do_upgrade() { bananapi,bpi-r64) local rootdev="$(cmdline_get_var root)" rootdev="${rootdev##*/}" + rootdev="${rootdev%p[0-9]*}" case "$rootdev" in mmc*) CI_ROOTDEV="$rootdev" -- 2.30.2