Use systemd-networkd instead of ifupdown
This commit is contained in:
parent
394f2d7929
commit
781848e5c3
|
|
@ -1,2 +0,0 @@
|
||||||
auto eth0
|
|
||||||
iface eth0 inet dhcp
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
auto lo
|
|
||||||
iface lo inet loopback
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
[Match]
|
||||||
|
Name=en*
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=true
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
[Match]
|
||||||
|
Name=eth*
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=true
|
||||||
|
|
@ -41,9 +41,7 @@ debootstrap \
|
||||||
--foreign \
|
--foreign \
|
||||||
--include=\
|
--include=\
|
||||||
netbase,\
|
netbase,\
|
||||||
ifupdown,\
|
|
||||||
net-tools,\
|
net-tools,\
|
||||||
isc-dhcp-client,\
|
|
||||||
systemd-sysv,\
|
systemd-sysv,\
|
||||||
u-boot-tools,\
|
u-boot-tools,\
|
||||||
initramfs-tools,\
|
initramfs-tools,\
|
||||||
|
|
@ -109,6 +107,7 @@ chroot debian /bin/sh -e <<- EOF
|
||||||
/usr/bin/apt-get -y upgrade
|
/usr/bin/apt-get -y upgrade
|
||||||
/usr/bin/apt-get clean
|
/usr/bin/apt-get clean
|
||||||
/bin/rm -rf /var/lib/apt/lists/*
|
/bin/rm -rf /var/lib/apt/lists/*
|
||||||
|
/usr/bin/systemctl enable systemd-networkd.service
|
||||||
/bin/rm -f /var/log/*.log
|
/bin/rm -f /var/log/*.log
|
||||||
/bin/echo root:${PASSWORD} | /usr/sbin/chpasswd
|
/bin/echo root:${PASSWORD} | /usr/sbin/chpasswd
|
||||||
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
|
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue