From b50618ee96effc4cc0620c40c5dcc08e20cd8909 Mon Sep 17 00:00:00 2001 From: Dan Voiculeasa Date: Thu, 4 Aug 2022 15:37:05 +0300 Subject: [PATCH] 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 Change-Id: Idf49b9e19cc733672b7b878b25563ac6ef9d1d67 --- kickstart/files/kickstart.cfg | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index a9d4c577..d441e8df 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -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 "****************************************************"