Debian: Set package links at startup [1]
This work: - is part of Debian integration effort. - will be part of a series of commits. - will allow puppet manifests to be applied on worker node at unlock/reboot time. This specific commit: - focuses on Standard deployment type - allows controllerconfig and workerconfig-standalone packages to coexist on the same iso - masks controllerconfig and/or workerconfig services based on personality at runtime - selects and links hardcoded paths to personality based paths Future work will account for storageconfig package and service. Future work will account for other packages. PASS: controllers unlocked on Standard PASS: workerconfig started puppet manifest apply on worker node PASS: controllers unlocked on AIO-DX PASS: controllerconfig is running on AIO-DX, controllerconfig is running on Standard, workerconfig is not running on controller node AIO-DX & Standard, workerconfig is running on worker node Story: 2010211 Task: 45949 Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com> Change-Id: I548cb4e42be3b9280040d235d67639b5ed4e0de2
This commit is contained in:
parent
b50618ee96
commit
8c1aab7b1d
@ -45,6 +45,7 @@
|
||||
# Post Nochroot - Save Install scripts and Logs
|
||||
# Post Nochroot - Workarounds for enabling integration
|
||||
# Post Nochroot - Set up /etc/fstab
|
||||
# Post Nochroot - Set up package file links per node type
|
||||
#
|
||||
############################################################################
|
||||
#
|
||||
@ -2339,3 +2340,31 @@ touch ${IMAGE_ROOTFS}/etc/platform/.first_boot
|
||||
|
||||
true
|
||||
%end
|
||||
|
||||
##########################################################################
|
||||
|
||||
%post --interpreter=/bin/bash --nochroot
|
||||
HOOK_LABEL="post_nochroot"
|
||||
. /tmp/lat/ks_functions.sh
|
||||
|
||||
# This needs to update all available ostree based rootfs
|
||||
|
||||
ilog "****************************************************************"
|
||||
ilog "*** Post Nochroot - Set up package links per node type ***"
|
||||
ilog "****************************************************************"
|
||||
ilog "IMAGE_ROOTFS=${IMAGE_ROOTFS}"
|
||||
|
||||
if [ ! "${controller}" = true -a "${worker}" = true ] ; then
|
||||
ilog "Setting up ${TRAIT__WORKER} package file links"
|
||||
ln -s /etc/goenabled.d/config_goenabled_check.sh.worker ${IMAGE_ROOTFS}/etc/goenabled.d/config_goenabled_check.sh
|
||||
ln -s /dev/null ${IMAGE_ROOTFS}/etc/systemd/system/controllerconfig.service
|
||||
elif [ "${controller}" = true ] ; then
|
||||
ilog "Setting up ${TRAIT__CONTROLLER} package file links"
|
||||
ln -s /etc/goenabled.d/config_goenabled_check.sh.controller ${IMAGE_ROOTFS}/etc/goenabled.d/config_goenabled_check.sh
|
||||
ln -s /dev/null ${IMAGE_ROOTFS}/etc/systemd/system/workerconfig.service
|
||||
fi
|
||||
|
||||
chmod 700 ${IMAGE_ROOTFS}/etc/goenabled.d/config_goenabled_check.sh
|
||||
|
||||
true
|
||||
%end
|
||||
|
Loading…
x
Reference in New Issue
Block a user