From 5e920d9b73d2778ef4d9eeea2ae567acf3a8ec6f Mon Sep 17 00:00:00 2001 From: junfeng-li Date: Wed, 1 Oct 2025 18:11:02 +0000 Subject: [PATCH] Mount /run to chroot environment This commit is to mount the host /run to /sysroot/upgrade/sysroot/run. USM auth state needs to check the flag controller_config_complete in the host /run during the data migration in the chroot environment. The fix will allow the USM deploy to access the flag. Test Plan: PASS: build and deploy on SX PASS: upgrade stx10 to stx11 with WRO applied PASS: upgrade stx10 to stx11 without WRO applied Task: 52872 Story: 2011357 Change-Id: Ie1c53bb0e952de49ce1b414398a290a4491c1af4 Signed-off-by: junfeng-li --- software/scripts/prepare-chroot-mounts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/software/scripts/prepare-chroot-mounts b/software/scripts/prepare-chroot-mounts index 56f633f3..d440d790 100644 --- a/software/scripts/prepare-chroot-mounts +++ b/software/scripts/prepare-chroot-mounts @@ -33,6 +33,7 @@ class ChrootMounts: ETC_PATH="/etc" PROC_PATH="/proc" LOG_PATH="/var/log" + RUN_PATH="/run" def __init__(self, checkout_dir): self._mount_points = { # src:dst @@ -54,6 +55,8 @@ class ChrootMounts: os.path.normpath(f"{self.TMP_PATH}/{self.PLATFORM_CONF_PATH}"), os.path.normpath(f"{checkout_dir}/{self.USR_PATH}/{self.ETC_PATH}"): os.path.normpath(f"{checkout_dir}/{self.ETC_PATH}"), + os.path.normpath(f"{self.RUN_PATH}"): + os.path.normpath(f"{checkout_dir}/{self.RUN_PATH}"), } def mount(self):