aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-10-19 19:58:12 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-10-19 20:05:17 +0100
commitd640cbac0e76e3638504cb6b239886e8ff75018f (patch)
treeb2acf87de959e608a4842fa2fe409e28788d6d1e
parenta97991fbeb22172e8640a72a73afac41ac463e22 (diff)
downloadupstream-d640cbac0e76e3638504cb6b239886e8ff75018f.tar.gz
upstream-d640cbac0e76e3638504cb6b239886e8ff75018f.tar.bz2
upstream-d640cbac0e76e3638504cb6b239886e8ff75018f.zip
mediatek: mt7622: don't rely on existing image for sysupgrade
Don't reply on mapped rootfs partition but rather just take what ever has been set to the kernel cmdline root= parameter as a hint to decide which media to install sysupgrade to on the BananaPi BPi-R64. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rwxr-xr-xtarget/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
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 1036793145..e62eba7ef1 100755
--- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@ -6,8 +6,8 @@ platform_do_upgrade() {
case "$board" in
bananapi,bpi-r64)
- export_bootdevice
- export_partdevice rootdev 0
+ local rootdev="$(cmdline_get_var root)"
+ rootdev="${rootdev##*/}"
case "$rootdev" in
mmc*)
CI_ROOTDEV="$rootdev"