debian: Fix config-gate packaging

This commit does several things at once:

- Ensures that the config.service starts
- Ensures that the preset are installed when the
  packages are installed.

Test Plan
PASS Build packaage
PASS Build and Install ISO
PASS Ensure config.service is enabled.

Story: 2009101
Task: 44678

Depends-On: https://review.opendev.org/c/starlingx/integ/+/831950

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: Ice4cb8e1139b73fe63d12253d8d3a86b0fa3dd80
This commit is contained in:
Chuck Short 2022-03-04 14:37:13 +00:00
parent 0781b817d9
commit 01a6f9880b
5 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,3 @@
lib/systemd/system/worker-config-gate.service lib/systemd/system/worker-config-gate.service
usr/sbin/wait_for_worker_config_init.sh usr/sbin/wait_for_worker_config_init.sh
debian/systemd/00-config-gate-worker.preset etc/systemd/system-preset

View File

@ -1,2 +1,3 @@
usr/sbin/wait_for_config_init.sh usr/sbin/wait_for_config_init.sh
lib/systemd/system/config.service lib/systemd/system/config.service
debian/systemd/00-config-gate.preset /etc/systemd/system-preset

View File

@ -12,4 +12,5 @@ override_dh_auto_install:
SYSTEMDDIR=`pwd`/debian/tmp/lib/systemd/system install SYSTEMDDIR=`pwd`/debian/tmp/lib/systemd/system install
override_dh_installsystemd: override_dh_installsystemd:
dh_installsystemd -pconfig-gate-worker worker-config-gate.service dh_installsystemd -pconfig-gate-worker --no-start worker-config-gate.service
dh_installsystemd -pconfig-gate --no-start config.service

View File

@ -0,0 +1 @@
enable config.service

View File

@ -0,0 +1 @@
disable worker-config-gate.service