sadly this isn't a bug that I can fix. I believe checked already, but setting the box type to
:linux causes the network provisioning to break. While setting the box type to
:alt fixes the networking issue, but leads to this hostname problem.
You have two solutions. You can install the
vagrant-alpine plugin, and then override the default type, by setting it to
:alpine or you can track down the
vagrant code that runs the above commands, and where it says:
bash # Update sysconfig sed -i 's/\(HOSTNAME=\).*/\1alpine.exampler.org/' /etc/sysconfig/network
Change it to:
bash if [ -f /etc/sysconfig/network ]; then # Update sysconfig sed -i 's/\(HOSTNAME=\).*/\1alpine.exampler.org/' /etc/sysconfig/network fi
That should sidestep the bug at the cost of preventing the hostname change from persisting across reboots. An
else which runs
sed against the appropriate file would fix that. I'd do it myself, but the internet connection where I am is currently running at 10 kb/s with 40% packet loss, so I couldn't boot Alpine to check the file.