Skip to content

Commit

Permalink
change order of interface startup
Browse files Browse the repository at this point in the history
(cherry picked from commit f8a05d7)
  • Loading branch information
ibrokethecloud authored and tserong committed Oct 16, 2024
1 parent 5797d30 commit 29dde34
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package/harvester-os/files/system/oem/90_network.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 29dde34

Please sign in to comment.