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 bk201 committed Oct 23, 2024
1 parent 6cab2dd commit e29493c
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 e29493c

Please sign in to comment.