Add packaging for vagrant box and cleanup step

This commit is contained in:
2025-11-01 23:31:43 -04:00
parent 4b49404a0c
commit b7d76be6ce
9 changed files with 108 additions and 23 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
install -d -m 755 -o root -g root /etc/systemd/network
cat > /etc/systemd/network/lan0.network << 'EOF'
[Match]
Name=e*
Type=ether
[Network]
DHCP=ipv4
EOF
chown root:root /etc/systemd/network/lan0.network
chmod 644 /etc/systemd/network/lan0.network
mv /etc/network/interfaces /etc/network/interfaces.save
mv /etc/network/interfaces.d /etc/network/interfaces.d.save
systemctl enable systemd-networkd
systemctl disable networking