Skip to content

Commit 0d53248

Browse files
committed
Make dhcp disable for eth1 working after reboot
vagrant will override its default configuration on every "vagrant up", so we put our override in a separate file with higher precedence.
1 parent 52d1846 commit 0d53248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vagrant/logger_bootstrap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fix_eth1_static_ip() {
9595
fi
9696
fi
9797
# TODO: try to set correctly directly through vagrant net config
98-
netplan set ethernets.eth1.dhcp4=false
98+
netplan set --origin-hint 90-disable-eth1-dhcp ethernets.eth1.dhcp4=false
9999
netplan apply
100100

101101
# Fix eth1 if the IP isn't set correctly

0 commit comments

Comments
 (0)