mediatek: mt7622: improve sysupgrade on MMC
authorDaniel Golle <daniel@makrotopia.org>
Wed, 31 Mar 2021 13:19:16 +0000 (14:19 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 31 Mar 2021 15:54:14 +0000 (16:54 +0100)
commit7043e4334f0e751143b128dd695dc196d044fc1f
treee8a0a3de6c168fd21840f748618e7056ebf3fc03
parentbb107ad9c13d244bf4aed255da913d6000c28833
mediatek: mt7622: improve sysupgrade on MMC

Use generic functions to acquire rootdev.
Make sure to wipe rootfs_data in case of '-n'.

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