capi: fix swap removal in qemu Ubuntu autoinstall templates - #2119
capi: fix swap removal in qemu Ubuntu autoinstall templates#2119hajowieland wants to merge 1 commit into
Conversation
Signed-off-by: hajowieland <mail@wieland.tech>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @hajowieland. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Nice catch, thanks for cleaning this up. Two small things:
Otherwise this looks good to me. |
|
/ok-to-test |
mboersma
left a comment
There was a problem hiding this comment.
Could you update the active 24.04.immutable template as well? It still removes /swapfile, but curtin creates /swap.img.
Also, please either restore the package-list cleanup or update the comments that say those lists are removed.
Change description
qemu autoinstall user-data tries to disable and remove the swap file via late-commands, but they seem to not work correctly.
curtin in-targetwrapper (like for raw)/swapfilebut the file to be removed is at/swap.imgThis change mirrors the config already in place for the raw Ubuntu templates.
Related issues
--
Additional context
Was currently masked by Ansible
noderole which also disables swap andsyspreprole deleting/swap.imgand/swapfile.