mediatek: filogic: don't rely on image preset in flash or sysupgrade
authorDaniel Golle <daniel@makrotopia.org>
Tue, 18 Oct 2022 18:47:25 +0000 (19:47 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 18 Oct 2022 19:08:47 +0000 (20:08 +0100)
commitde94587e709e6d8ddaca4fe534e776d2e87437df
treee277b2e7203ec58883b77c473e91e53de2cf938a
parent2c6b212a2f03f98eb94fe1a3b9abc693e27eacb8
mediatek: filogic: don't rely on image preset in flash or sysupgrade

Instead of trying to figure out the actual root device, just use the
kernel 'root' cmdline parameter as a hint to decide which device to
flash to.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh