Skip to content

Commit

Permalink
Merge pull request #79 from OSInside/ubuntu-box-systemd-network-resolve
Browse files Browse the repository at this point in the history
boxes: ubuntu: switch to using systemd-networkd and systemd-resolved
  • Loading branch information
schaefi authored Jan 18, 2025
2 parents c0189cd + 8303d93 commit 2f2cf4a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion boxes/ubuntu/appliance.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
<package name="syslinux" arch="x86_64"/>
<package name="syslinux-common" arch="x86_64"/>
<package name="systemd"/>
<package name="systemd-resolved"/>
<package name="dracut"/>
<package name="init"/>
<package name="gnupg"/>
<package name="iproute2"/>
<package name="iptables"/>
<package name="iputils-ping"/>
<package name="ifupdown"/>
<package name="isc-dhcp-client"/>
<package name="netbase"/>
<package name="dbus"/>
Expand Down
5 changes: 3 additions & 2 deletions boxes/ubuntu/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ systemctl disable lvm2-lvmetad.socket
systemctl mask lvm2-lvmetad.socket

#======================================
# Enable firstboot resolv.conf setting
# Enable systemd networking services
#--------------------------------------
baseInsertService symlink-resolvconf
baseInsertService systemd-networkd
baseInsertService systemd-resolved
3 changes: 0 additions & 3 deletions boxes/ubuntu/root/etc/network/interfaces.d/lan0

This file was deleted.

5 changes: 5 additions & 0 deletions boxes/ubuntu/root/etc/systemd/network/lan0.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=lan0

[Network]
DHCP=Yes
12 changes: 0 additions & 12 deletions boxes/ubuntu/root/etc/systemd/system/symlink-resolvconf.service

This file was deleted.

0 comments on commit 2f2cf4a

Please sign in to comment.