[openwrt/openwrt] mvebu: fix default partition name

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 13 05:18:25 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d21720fa90c89b571805ff73b223c38e23ad5bf6

commit d21720fa90c89b571805ff73b223c38e23ad5bf6
Author: Boris Krasnovskiy <borkra at gmail.com>
AuthorDate: Sat Oct 12 19:57:16 2024 -0400

    mvebu: fix default partition name
    
    The firmware partition name is specifc to ipTIME NAS1dual and should not be
    set globally.
    
    Fixes: #16148
    Fixes: 6ff970bb51f5 ("mvebu: add support for ipTIME NAS1dual")
    Signed-off-by: Boris Krasnovskiy <borkra at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16690
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
index 049f8eeb8c..e2a82fe87c 100755
--- a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
@@ -6,7 +6,6 @@
 RAMFS_COPY_BIN='fw_printenv fw_setenv seq strings'
 RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
 
-PART_NAME=firmware
 REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
@@ -74,6 +73,10 @@ platform_do_upgrade() {
 		esac
 		default_do_upgrade "$1"
 		;;
+	iptime,nas1dual)
+		PART_NAME=firmware
+		;;
+
 	linksys,wrt1200ac|\
 	linksys,wrt1900ac-v1|\
 	linksys,wrt1900ac-v2|\




More information about the lede-commits mailing list