Skip to content
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

Fix Debian preseed causing deployment failures #208

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

gsperry2011
Copy link
Contributor

This resolves #206

I am not sure if this has always been a problem or just started occurring but with the current preseeds in the packer-maas repo deployments will fail with late 4: sed -i 's/security.debian.org\/debian/security.debian.org/g' /mnt/etc/cloud/cloud.cfg being unable to locate the /mnt/etc/cloud/cloud.cfg file (Which is rather strange seeing as the sed command just prior to this one is also targeting the same file and succeeds..)

I did a bit of testing and found that forcing the sed commands targetting the same file to run seqentually via && resolved this for me. My hunch is that MAAS is trying to run the second sed command before the first has completed - That being said I did try to put a sleep 10 between the two seds and it did not resolve the problem so i could be incorrect there.

debian/curtin_userdata_custom_amd64 Outdated Show resolved Hide resolved
debian/curtin_userdata_custom_arm64 Outdated Show resolved Hide resolved
@alexsander-souza alexsander-souza merged commit 3b02dc4 into canonical:main Feb 14, 2024
1 check 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.

Debian 12 cannot be deployed because /mnt/etc/cloud/cloud.cfg does not exist
3 participants