mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-17 16:00:28 +00:00
Create network files before starting the network service for systemd (#509)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
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
|
- wicked
|
||||||
- name: "Enable systemd-network and systemd-resolved"
|
- name: "Enable systemd-network and systemd-resolved"
|
||||||
if: '[ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]'
|
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:
|
systemctl:
|
||||||
enable:
|
enable:
|
||||||
- systemd-networkd
|
- systemd-networkd
|
||||||
|
Reference in New Issue
Block a user