From 08f7082f0eabafed94c3bf8ef017651d8246b5e1 Mon Sep 17 00:00:00 2001
From: Piotr Kubik <piotr.kubik@iopsys.eu>
Date: Thu, 23 Jan 2025 17:06:17 +0100
Subject: [PATCH] airoha: sysupgrade: Pass image name to copy_config

This allows getting an offset of new fitblk overlay from upgrade image.
---
 airoha/base-files/lib/upgrade/platform.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/airoha/base-files/lib/upgrade/platform.sh b/airoha/base-files/lib/upgrade/platform.sh
index 54fc59f6f..0c776c85f 100644
--- a/airoha/base-files/lib/upgrade/platform.sh
+++ b/airoha/base-files/lib/upgrade/platform.sh
@@ -55,8 +55,9 @@ platform_get_bootbank() {
 }
 
 platform_copy_config() {
+	local image="$1"
 	log "Copy config files"
-	iopsys_copy_config
+	iopsys_copy_config "$image"
 }
 
 __get_bootloader_device() {
-- 
GitLab