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 <junfeng.li@windriver.com>
This commit is contained in:
@@ -33,6 +33,7 @@ class ChrootMounts:
|
|||||||
ETC_PATH="/etc"
|
ETC_PATH="/etc"
|
||||||
PROC_PATH="/proc"
|
PROC_PATH="/proc"
|
||||||
LOG_PATH="/var/log"
|
LOG_PATH="/var/log"
|
||||||
|
RUN_PATH="/run"
|
||||||
|
|
||||||
def __init__(self, checkout_dir):
|
def __init__(self, checkout_dir):
|
||||||
self._mount_points = { # src:dst
|
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"{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.USR_PATH}/{self.ETC_PATH}"):
|
||||||
os.path.normpath(f"{checkout_dir}/{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):
|
def mount(self):
|
||||||
|
Reference in New Issue
Block a user