Skip to content

Commit 63cb594

Browse files
committed
Enable dhcp for netplan distros
1 parent 78c0f53 commit 63cb594

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

simpleimage/make_rootfs.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,15 @@ EOF
334334
cat > "$DEST/etc/network/interfaces.d/eth0" <<EOF
335335
auto eth0
336336
iface eth0 inet dhcp
337+
EOF
338+
else
339+
cat > "$DEST/etc/netplan/pine64.yaml" <<EOF
340+
network:
341+
version: 2
342+
renderer: networkd
343+
ethernets:
344+
eth0:
345+
dhcp4: yes
337346
EOF
338347
fi
339348
cat > "$DEST/etc/hostname" <<EOF

0 commit comments

Comments
 (0)