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>
This commit is contained in:
Daniel Golle 2022-10-19 19:58:12 +01:00
parent a97991fbeb
commit d640cbac0e
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA

View File

@ -6,8 +6,8 @@ platform_do_upgrade() {
case "$board" in case "$board" in
bananapi,bpi-r64) bananapi,bpi-r64)
export_bootdevice local rootdev="$(cmdline_get_var root)"
export_partdevice rootdev 0 rootdev="${rootdev##*/}"
case "$rootdev" in case "$rootdev" in
mmc*) mmc*)
CI_ROOTDEV="$rootdev" CI_ROOTDEV="$rootdev"