From 66104e12918c3115de1c7906c6e564d8900ac21c Mon Sep 17 00:00:00 2001 From: Jessica Castelino Date: Tue, 22 Nov 2022 21:07:19 +0000 Subject: [PATCH] Remove --mirror for ostree pull ostree pull with --mirror creates a new ref for the sysroot ostree which isn't kept up to date by the subsequent pull operations. This commit removes the --mirror from ostree pull to avoid this inconsistent behavior. Test plan: [PASS] - Verified the --mirror messes the sysroot ostree refs Signed-off-by: Jessica Castelino Change-Id: I798ff7119442a09007692b3bf416e4e96125a8d4 Closes-Bug: 1997491 --- sw-patch/cgcs-patch/cgcs_patch/ostree_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw-patch/cgcs-patch/cgcs_patch/ostree_utils.py b/sw-patch/cgcs-patch/cgcs_patch/ostree_utils.py index 65778209..aad87344 100644 --- a/sw-patch/cgcs-patch/cgcs_patch/ostree_utils.py +++ b/sw-patch/cgcs-patch/cgcs_patch/ostree_utils.py @@ -166,7 +166,7 @@ def pull_ostree_from_remote(): Pull from remote ostree to sysroot ostree """ - cmd = "ostree pull %s --depth=-1 --mirror" % constants.OSTREE_REMOTE + cmd = "ostree pull %s --depth=-1" % constants.OSTREE_REMOTE try: subprocess.run(cmd, shell=True, check=True, capture_output=True)