Remove IPA build on cleanup

Delete the deploy kernel, ramdisk, and ISO files during cleanup
to trigger rebuild on the subsequent stack.sh run.

Closes-Bug: #2076358
Change-Id: I6600b67c9b3455d8191126b24a1941ae7c384e36
This commit is contained in:
cid 2025-03-10 18:01:48 +01:00
parent b44cce176f
commit 0962a07e0c

View File

@ -1362,6 +1362,13 @@ function cleanup_ironic {
# Remove the hook to disable log rotate
sudo rm -rf $IRONIC_LIBVIRT_HOOKS_PATH/qemu
# Force fresh rebuild of local build IPA on next run
if [[ "$IRONIC_BUILD_DEPLOY_RAMDISK" == "True" ]]; then
sudo rm -f $IRONIC_DEPLOY_KERNEL
sudo rm -f $IRONIC_DEPLOY_RAMDISK
sudo rm -f $IRONIC_DEPLOY_ISO
fi
}
# configure_ironic_dirs() - Create all directories required by Ironic and