mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
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:
parent
a97991fbeb
commit
d640cbac0e
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user