Move upgrade scripts to /usr/local/share
In the current directory /etc/upgrade.d, when upgrade scripts are removed or renamed in a patch, the patching system using apt-ostree does not recognize these changes because the files are considered config files, and ends up with duplicated files in the directory after the patch is applied. This commit moves the upgrade scripts from /etc to /usr/local/share so that scripts are changed correctly in the scenario described previously. TODO (another commit): change the patch scripts directory from /etc/update.d to /usr/local/share/ Test Plan PASS: AIO-SX: apply a patch with deleted, changed and renamed scripts in stx-10, verify the changes are applied accordingly PASS: AIO-SX: build a prepatched iso with the changes from the previous TC and run a major release deployment stx-8 -> stx-10 Closes-bug: 2091944 Change-Id: Ia36dcda9630a9b3d7e37fe0ce82e3e1fcb09daa1 Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
parent
0d631d0064
commit
306c4b2047
controllerconfig/debian/deb_folder
@ -1,4 +1,4 @@
|
||||
etc/upgrade.d
|
||||
usr/local/share/upgrade.d
|
||||
etc/init.d
|
||||
etc/goenabled.d
|
||||
usr/sbin
|
||||
|
@ -2,4 +2,4 @@ usr/bin/*
|
||||
etc/goenabled.d/*
|
||||
usr/lib/python*/dist-packages/*
|
||||
etc/init.d/*
|
||||
etc/upgrade.d/*
|
||||
usr/local/share/upgrade.d/*
|
||||
|
@ -21,8 +21,8 @@ override_dh_install:
|
||||
install -p -D -m 700 scripts/config_goenabled_check.sh $(ROOT)/etc/goenabled.d/config_goenabled_check.sh.controller
|
||||
install -d -m 755 $(ROOT)/etc/init.d
|
||||
install -p -D -m 755 scripts/controller_config $(ROOT)/etc/init.d/controller_config
|
||||
install -d -m 755 $(ROOT)/etc/upgrade.d
|
||||
install -p -D -m 755 upgrade-scripts/* $(ROOT)/etc/upgrade.d
|
||||
install -d -m 755 $(ROOT)/usr/local/share/upgrade.d
|
||||
install -p -D -m 755 upgrade-scripts/* $(ROOT)/usr/local/share/upgrade.d
|
||||
install -d -m 755 $(ROOT)/etc/update.d
|
||||
install -d -m 755 $(ROOT)/lib/systemd/system
|
||||
dh_install
|
||||
@ -44,3 +44,5 @@ override_dh_installsystemd:
|
||||
|
||||
override_dh_python3:
|
||||
dh_python3 --shebang=/usr/bin/python3
|
||||
|
||||
override_dh_usrlocal:
|
||||
|
Loading…
x
Reference in New Issue
Block a user