Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change order of interface startup (backport #868) #871

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading