8000 Update cloud-init behavior and iso generation by chrisroberts · Pull Request #13666 · hashicorp/vagrant · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update cloud-init behavior and iso generation #13666

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
May 14, 2025

Conversation

chrisroberts
Copy link
Member

This includes a couple modifications to the cloud-init behavior.
First, the cloud-init wait action will now write a sentinel file
after successfully waiting for cloud-init. This results in subsequent
boots of the machine to skip executing the cloud-init wait command
as cloud-init is only executed on the initial boot.

Second, the cloud-init setup action will check for the sentinel file
written by the cloud-init wait action, and if detected it will skip
the cloud-init setup. When creating the ISO for cloud-init, a second
sentinel file will be used to log the path of the generated ISO
file. If the file exists, the ISO generation process will be skipped.

Fixes #13664

This includes a couple modifications to the cloud-init behavior.
First, the cloud-init wait action will now write a sentinel file
after successfully waiting for cloud-init. This results in subsequent
boots of the machine to skip executing the cloud-init wait command
as cloud-init is only executed on the initial boot.

Second, the cloud-init setup action will check for the sentinel file
written by the cloud-init wait action, and if detected it will skip
the cloud-init setup. When creating the ISO for cloud-init, a second
sentinel file will be used to log the path of the generated ISO
file. If the file exists, the ISO generation process will be skipped.
@chrisroberts chrisroberts force-pushed the cloud-init-iso-attach branch from 72909ec to f4fc2c7 Compare May 14, 2025 19:57
@chrisroberts chrisroberts marked this pull request as ready for review May 14, 2025 21:01
@chrisroberts chrisroberts requested a review from a team as a code owner May 14, 2025 21:01
@chrisroberts chrisroberts merged commit f70952c into hashicorp:main May 14, 2025
11 checks passed
@chrisroberts chrisroberts deleted the cloud-init-iso-attach branch May 14, 2025 21:10
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.

Cloud-init user data ISO saturate storage controller ports and waste host disk space
2 participants
0