Debian: Add workaround for enabling swacts and unlocks

This work is part of Debian integration effort.
This work only affects Debian.
This work will work around an issue seen during puppet apply on worker
nodes.

This obsoletes workaround [1]. In fact we move the logic here such that
we don't require manual intervention anymore.

Tests on Debian:
PASS: both controllers unlocked on a Standard deployment.
PASS: puppet manifest applied on worker node.
PASS: both controllers unlocked on an AIO-DX deployment.
PASS: swact on AIO-DX by reboot

[1]: https://review.opendev.org/c/starlingx/utilities/+/850541
Related-Bug: https://bugs.launchpad.net/starlingx/+bug/1983580
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Idf49b9e19cc733672b7b878b25563ac6ef9d1d67
This commit is contained in:
Dan Voiculeasa 2022-08-04 15:37:05 +03:00
parent 9e55a32fcc
commit b50618ee96

View File

@ -43,6 +43,7 @@
# Post - Kickstart Finalize Install UUID
# Post - Log Filesystem Setup
# Post Nochroot - Save Install scripts and Logs
# Post Nochroot - Workarounds for enabling integration
# Post Nochroot - Set up /etc/fstab
#
############################################################################
@ -2293,6 +2294,26 @@ true
HOOK_LABEL="post_nochroot"
. /tmp/lat/ks_functions.sh
# This section needs to be removed when solutions are implemented
ilog "***********************************************************************"
ilog "*** Post Nochroot - Workarounds for enabling integration ***"
ilog "***********************************************************************"
# Workaround for enabling swacts on AIO-DX
# Workaround for enabling compute unlocks
# Launchpad: #1983580
rm ${IMAGE_ROOTFS}/var/lib/dpkg/triggers/Unincorp
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 "****************************************************"