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>
Thu, 20 Jun 2019 18:02:29 +0000 (20:02 +0200)
commit1440175f82f36c64de8a8593f68749741762580a
tree8238abd51d0b563628d50b89bf2c91b4cb04abac
parent869ff80d312d5ef64f84eb22a0906f80e614f706
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