Skip to content

Commit

Permalink
Really, really fix the network issue (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 24, 2023
1 parent 2b01f37 commit 362058e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/static/kairos-overlay-files/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.9"
version: "1.1.10"
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
name: "Default network configuration"
stages:
initramfs.before:
- name: "Enable systemd-network config files for DHCP"
rootfs:
- name: "Enable systemd-network config files for DHCP" # Needed if systemd-networkd runs in the initramfs!
if: '[ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]'
directories:
- path: "/etc/systemd/network/" # doesnt exist on initramfs
permissions: 0775
owner: 0
group: 0
files:
- path: /etc/systemd/network/20-dhcp.network
permissions: 0644
owner: 0
group: 0
content: |
[Match]
Name=en*
Name=en* eth*
[Network]
DHCP=yes
- path: /etc/systemd/network/20-dhcp-legacy.network
initramfs:
- name: "Enable systemd-network config files for DHCP"
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=eth*
Name=en* eth*
[Network]
DHCP=yes
initramfs:
- name: "Disable NetworkManager and wicked"
if: '[ -e "/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ] || [ -e "/usr/sbin/systemctl" ] || [ -e "/usr/bin/systemctl" ]'
systemctl:
Expand Down

0 comments on commit 362058e

Please sign in to comment.