Fix network issues on startup for cloud-init

We need to rename 50-cloud-init.cfg to 50-cloud-init
to configure network correctly. [1]

[1] https://askubuntu.com/questions/853615/files-in-etc-network-interfaces-d-ignored-but-not-etc-network-interfaces-itse
Closes: 241
Change-Id: I607129d3fdacc5682f98dc6dd77ddce64f4ff5e1
This commit is contained in:
Alexander Noskov 2020-05-20 16:05:18 -05:00
parent faaae536ce
commit 0f6344c58f

View File

@ -108,3 +108,5 @@ stringData:
- mount --bind /mnt/vda/var/lib/docker /var/lib/docker
- mkdir -p /var/lib/docker-engine /mnt/vda/var/lib/docker-engine
- mount --bind /mnt/vda/var/lib/docker-engine /var/lib/docker-engine
- mv /etc/network/interfaces.d/50-cloud-init.cfg /etc/network/interfaces.d/50-cloud-init
- systemctl restart networking