From df1f6e1e186a99b2180abac5da87f071b7f6b3fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Owoc?= Date: Thu, 2 Jan 2025 22:31:33 +0100 Subject: [PATCH] qualcommax: ipq807x: Remove OEM UBI volume before upgrade for Linksys MX devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use 'remove_oem_ubi_volume' function to remove OEM UBI volume before upgrade. This allows to upgrade even if we have OEM firmware on the second partition. Applies to Linksys MX4200/MX4300/MX5300/MX8500. Signed-off-by: Paweł Owoc Link: https://github.com/openwrt/openwrt/pull/14720 Signed-off-by: Robert Marko --- .../qualcommax/ipq807x/base-files/lib/upgrade/platform.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh index 1bc71efdb5..cb60c5daf6 100644 --- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh +++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh @@ -212,9 +212,13 @@ platform_do_upgrade() { ;; linksys,mx4200v1|\ linksys,mx4200v2|\ - linksys,mx4300|\ + linksys,mx4300) + remove_oem_ubi_volume squashfs + linksys_mx_do_upgrade "$1" + ;; linksys,mx5300|\ linksys,mx8500) + remove_oem_ubi_volume ubifs linksys_mx_do_upgrade "$1" ;; prpl,haze|\ -- 2.30.2