Move patch scripts from /etc to /opt

Patch scripts will now be staged in /opt/patching/patch-scripts
instead of /etc/patching/patch-scripts. For in-service patching,
we re-mount /etc and /usr directories that makes these directories
non-writable. Thus, in the future if you have to delete the
scripts, it's not possible.

This commit fixes the issue by staging the patch scripts in /opt
during upload.

Test Plan:
Apply, Install, Remove and Delete an in-service patch

Story: 2009969
Task: 45820
Signed-off-by: Jessica Castelino <jessica.castelino@windriver.com>
Change-Id: Ib90e5892d5d3e365d6e2da6abb41cfbc6be2c263
This commit is contained in:
Jessica Castelino 2022-07-19 19:18:33 +00:00
parent 8b04c8113b
commit 3d0d3566c7
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ repo_root_dir = "/var/www/pages/updates"
repo_dir = {SW_VERSION: "%s/rel-%s" % (repo_root_dir, SW_VERSION)}
root_package_dir = "%s/packages" % patch_dir
root_scripts_dir = "/etc/patching/patch-scripts"
root_scripts_dir = "/opt/patching/patch-scripts"
package_dir = {SW_VERSION: "%s/%s" % (root_package_dir, SW_VERSION)}
logfile = "/var/log/patching.log"