Fix Debian preseed causing deployment failures #208
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thesed
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 secondsed
command before the first has completed - That being said I did try to put asleep 10
between the twosed
s and it did not resolve the problem so i could be incorrect there.