Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Debian preseed causing deployment failures (#208)
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 `sed`s and it did not resolve the problem so i could be incorrect there. --------- Co-authored-by: Greg Perry <[email protected]> Co-authored-by: Adam Collard <[email protected]>
- Loading branch information