
Since upgrade is the responsability of USM the upgrade scripts need to be moved to the update repo. This commit removes the upgrade-scripts from this repo. Commit [1] has already been created in update repo. The scripts will still be located under /usr/local/share/upgrade.d . Test Plan: PASS: Build-pkgs && build-image PASS: Upgrade from 24.09 to 25.09 PASS: Install/bootstrap 25.09 PASS: Check if /usr/local/share/upgrade.d have the same scripts. Story: 2011357 Task: 52193 [1]: https://review.opendev.org/c/starlingx/update/+/949948 Depends-On: https://review.opendev.org/c/starlingx/update/+/949948 Change-Id: Id7e91abd6cfad4f5388dc562f2275d2e692578e7 Signed-off-by: Luis Eduardo Bonatti <luizeduardo.bonatti@windriver.com>
43 lines
1.5 KiB
Makefile
Executable File
43 lines
1.5 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
#export DH_VERBOSE = 1
|
|
|
|
export PYBUILD_NAME=controllerconfig
|
|
|
|
ROOT := $(CURDIR)/debian/tmp
|
|
|
|
%:
|
|
dh $@ --with python3 --buildsystem=pybuild
|
|
|
|
override_dh_install:
|
|
python3 setup.py install -f --install-layout=deb --root=$(ROOT)
|
|
python3 setup.py bdist_wheel --universal -d $(CURDIR)/debian/controllerconfig-wheels/usr/share/python-wheels
|
|
install -d -m 755 $(ROOT)/usr/bin
|
|
install -p -D -m 700 scripts/openstack_update_admin_password $(ROOT)/usr/bin/openstack_update_admin_password
|
|
install -p -D -m 700 scripts/upgrade_swact_migration.py $(ROOT)/usr/bin/upgrade_swact_migration.py
|
|
install -p -D -m 755 scripts/image-backup.sh $(ROOT)/usr/bin/image-backup.sh
|
|
install -p -D -m 755 scripts/sysinv-service-restart.sh $(ROOT)/usr/bin/sysinv-service-restart.sh
|
|
install -d -m 755 $(ROOT)/etc/goenabled.d/
|
|
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)/lib/systemd/system
|
|
dh_install
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms \
|
|
-X/usr/bin/openstack_update_admin_password \
|
|
-X/usr/bin/image-backup.sh \
|
|
-Xupgrade_swact_migration.py \
|
|
-Xconfig_goenabled_check.sh \
|
|
|
|
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
|
override_dh_auto_test:
|
|
stestr run || true
|
|
endif
|
|
|
|
override_dh_installsystemd:
|
|
dh_installsystemd -pcontrollerconfig --no-start controllerconfig.service
|
|
|
|
override_dh_python3:
|
|
dh_python3 --shebang=/usr/bin/python3
|