From 2f143b1aff3ea770404bc37618b4a547bc34f010 Mon Sep 17 00:00:00 2001
From: junfeng-li <junfeng.li@windriver.com>
Date: Wed, 9 Oct 2024 15:15:19 +0000
Subject: [PATCH] Configure software deploy script permissions

This commit is to ensure the software deploy script permissions are
configured to 755 during the pxeboot installation.

Test Plan:

PASS: build and deploy iso
PASS: pxeboot installation on controller-1
PASS: install iso on system controller via pxeboot

Task: 51140
Story: 2010676
Change-Id: Ibafd1bdb6487db9ea3f48b74ea8129ed3ee3cc64
Signed-off-by: junfeng-li <junfeng.li@windriver.com>
---
 kickstart/files/kickstart.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg
index 5c188f4f..b581e55f 100644
--- a/kickstart/files/kickstart.cfg
+++ b/kickstart/files/kickstart.cfg
@@ -3221,6 +3221,8 @@ else
         wget ${NOVERIFYSSL_WGET_OPT} -r -np -nH --cut-dirs=3 -R "index.html*" \
             ${upgrade_url}/ -o /${LAT_DIR}/wget_usm_upgrades.log
         ilog "USM upgrades directory download complete"
+        chmod 755 ./software-deploy/*
+        ilog "The file permissions in the ${feed}/upgrades/software-deploy/ directory are configured to 755."
         ilog "Copy software-deploy directory to ${IMAGE_ROOTFS}/var/rootdirs/${versioned_dir}"
         cp -r ${feed}/upgrades/software-deploy/* ${IMAGE_ROOTFS}/var/rootdirs/${versioned_dir}
         ilog "Copy software-deploy directory complete"