Remove unneeded workaround for vmdebootstrap

This commit is contained in:
Jan Dittberner 2023-05-07 17:05:38 +02:00
parent dff59df21a
commit 9741d13fa6
2 changed files with 0 additions and 19 deletions

4
Vagrantfile vendored
View file

@ -8,10 +8,6 @@ Vagrant.configure("2") do |config|
config.vm.post_up_message = nil
config.vm.synced_folder ".", "/vagrant", disabled: true, type: "9p"
config.vm.provision :shell,
path: "scripts/change-vmdebootstrap-default-dhcp.sh"
#config.vm.provision "shell",
# inline: "sed -i 's/^mesg n$/tty -s \\&\\& mesg n/g' /root/.profile"
config.vm.provision "shell",
path: "scripts/add_salt_to_etc_hosts.sh"

View file

@ -1,15 +0,0 @@
#!/bin/sh
set -e
debootstrap_network=/etc/systemd/network/99-dhcp.network
if grep -q '^Name=\\*' "${debootstrap_network}"; then
primary_nic=$(ls -1 /sys/class/net | grep -v lo |sort | head -1)
sed -i "s/^Name=e\\*/Name=${primary_nic}/" \
"${debootstrap_network}"
systemctl restart systemd-networkd.service
echo "Changed systemd network configuration"
else
echo "Systemd network configuration has already been changed"
fi