mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-17 15:40:44 +00:00
Create network files before starting the network service for systemd (#509)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.7"
|
||||
version: "1.1.8"
|
||||
|
@@ -1,4 +0,0 @@
|
||||
[Match]
|
||||
Name=eth*
|
||||
[Network]
|
||||
DHCP=yes
|
@@ -1,4 +0,0 @@
|
||||
[Match]
|
||||
Name=en*
|
||||
[Network]
|
||||
DHCP=yes
|
@@ -9,6 +9,16 @@ stages:
|
||||
- wicked
|
||||
- name: "Enable systemd-network and systemd-resolved"
|
||||
if: '[ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]'
|
||||
files:
|
||||
- path: /etc/systemd/network/20-dhcp.network
|
||||
permissions: 0644
|
||||
owner: 0
|
||||
group: 0
|
||||
content: |
|
||||
[Match]
|
||||
Name=en* eth*
|
||||
[Network]
|
||||
DHCP=yes
|
||||
systemctl:
|
||||
enable:
|
||||
- systemd-networkd
|
||||
|
Reference in New Issue
Block a user