Skip to content

feat(lxd): add flag to delete existing images before build#27

Merged
mtarsel merged 1 commit intoIBM:mainfrom
rahulssv-ibm:feat/lxd-image-delete-flag
Mar 4, 2026
Merged

feat(lxd): add flag to delete existing images before build#27
mtarsel merged 1 commit intoIBM:mainfrom
rahulssv-ibm:feat/lxd-image-delete-flag

Conversation

@rahulssv-ibm
Copy link
Collaborator

Resolves #26

Fixes host disk space limitations during complete builds by allowing early deletion of existing images.

Changes:

  • setup_vars.sh: Added --delete-lxd-img flag.

  • lxd_container.sh & lxd_vm.sh:

    • Refactored existing deletion logic into a reusable cleanup_old_image() function.
    • Added check to run cleanup_old_image() before the build if the new flag is passed.

Resolves disk space limitations on host machines during complete image builds.

Signed-off-by: Rahul Vishwakarma <Rahul.Vishwakarma2@ibm.com>
@rahulssv-ibm rahulssv-ibm requested a review from mtarsel February 28, 2026 05:19
@mtarsel mtarsel merged commit f526448 into IBM:main Mar 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Host disk space exhaustion during LXD image builds

2 participants