Use systemd-networkd instead of ifupdown

This commit is contained in:
Johan Gunnarsson 2021-02-07 12:28:52 +01:00
parent 394f2d7929
commit 781848e5c3
5 changed files with 11 additions and 6 deletions

View File

@ -1,2 +0,0 @@
auto eth0
iface eth0 inet dhcp

View File

@ -1,2 +0,0 @@
auto lo
iface lo inet loopback

View File

@ -0,0 +1,5 @@
[Match]
Name=en*
[Network]
DHCP=true

View File

@ -0,0 +1,5 @@
[Match]
Name=eth*
[Network]
DHCP=true

View File

@ -41,9 +41,7 @@ debootstrap \
--foreign \
--include=\
netbase,\
ifupdown,\
net-tools,\
isc-dhcp-client,\
systemd-sysv,\
u-boot-tools,\
initramfs-tools,\
@ -109,6 +107,7 @@ chroot debian /bin/sh -e <<- EOF
/usr/bin/apt-get -y upgrade
/usr/bin/apt-get clean
/bin/rm -rf /var/lib/apt/lists/*
/usr/bin/systemctl enable systemd-networkd.service
/bin/rm -f /var/log/*.log
/bin/echo root:${PASSWORD} | /usr/sbin/chpasswd
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config