ipq40xx: Linksys: sysupgrade: Ensure OEM volumes are removed
authorJeff Kletsky <git-commits@allycomm.com>
Sat, 15 Jun 2019 21:40:56 +0000 (14:40 -0700)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 24 Jun 2019 18:28:33 +0000 (20:28 +0200)
commita471d8c595a8bd73f1e38c6ee8193dfc2462a811
treeaa8f19c90c8abc7ddc78dd0889630f6e7da773de
parentb8fc9c1580eb08ce376d3f702b51b14afb11f73b
ipq40xx: Linksys: sysupgrade: Ensure OEM volumes are removed

When OEM volumes are present in the [alt_]firmware partition,
sysupgrade will write a new kernel, but will fail to write
the root file system. The next boot will hang indefinitely

    Waiting for root device /dev/ubiblock0_0...

Modified ipq40xx/base-files/lib/upgrade/linksys.sh
to remove both `squashfs` and `ubifs` if found
on the target firmware partition's UBI device.

Run-tested-on: Linksys EA8300

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[applied some shellcheck suggestions as well]
target/linux/ipq40xx/base-files/lib/upgrade/linksys.sh