From 29dde3400e804d9801d91d784a6c0563f24ea446 Mon Sep 17 00:00:00 2001 From: Gaurav Mehta Date: Tue, 15 Oct 2024 14:14:45 +1100 Subject: [PATCH] change order of interface startup (cherry picked from commit f8a05d73c1d54bf1b6aa9654798d8a8fb45a2068) --- .../harvester-os/files/system/oem/90_network.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package/harvester-os/files/system/oem/90_network.yaml b/package/harvester-os/files/system/oem/90_network.yaml index db3b11703..ee3e031c0 100644 --- a/package/harvester-os/files/system/oem/90_network.yaml +++ b/package/harvester-os/files/system/oem/90_network.yaml @@ -1,13 +1,6 @@ name: "Network configuration" stages: initramfs: - - name: Bring up interfaces - commands: - - | - for i in /sys/class/net/{eth*,en*,ib*}; do - [ -e $i ] || continue - ip link set $(basename $i) up; - done # We will manually update the /etc/resolv.conf so stop netconfig from modifying it - name: Disable NETCONFIG_DNS_POLICY for PXE installation if: cat /proc/cmdline | grep -q "harvester.install.automatic=true" @@ -51,3 +44,11 @@ stages: done | sort -u > /etc/resolv.conf echo "/etc/resolv.conf is generated from each interface's resolv.conf" fi + network: + - name: Bring up interfaces + commands: + - | + for i in /sys/class/net/{eth*,en*,ib*}; do + [ -e $i ] || continue + ip link set $(basename $i) up; + done \ No newline at end of file