Skip to content

Commit

Permalink
set NIC1 even if no interface is yet up
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Nov 5, 2022
1 parent 7bba822 commit 316ed61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/get-boot-info
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ EOF
# DOMAIN was specified on the kernel command line
echo "DOMAIN=$DOMAIN" >> $bootlog
fi

# use first Ethernet interface, even if it's not used during installation
if [ -z "$NIC1" ]; then
# ignore some names
NIC1=$(ls /sys/class/net/ | grep '^en' | head -1)
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get_fixed_info() {
Expand Down

0 comments on commit 316ed61

Please sign in to comment.