Skip to content

Don't generate null mounts cloud-config entry #3812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

afbjorklund
Copy link
Member

Fixes #3811

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@@ -11,7 +11,7 @@ package_upgrade: true
package_reboot_if_required: true
{{- end }}

{{- if or .RosettaEnabled (or (eq .MountType "9p") (eq .MountType "virtiofs")) }}
{{- if or .RosettaEnabled (and .Mounts (or (eq .MountType "9p") (eq .MountType "virtiofs"))) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is pre-existing code, but I wonder if the condition should just exclude reverse-sshfs in case we add more mount types in the future:

Suggested change
{{- if or .RosettaEnabled (and .Mounts (or (eq .MountType "9p") (eq .MountType "virtiofs"))) }}
{{- if or .RosettaEnabled (and .Mounts (ne .MountType "reverse-sshfs")) }}

@jandubois jandubois merged commit 529b8b8 into lima-vm:master Aug 11, 2025
62 of 63 checks passed
@jandubois jandubois added this to the v2.0.0 milestone Aug 11, 2025
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.

Generated cloud-init has a few errors and warnings.
2 participants