Skip to content

Commit

Permalink
write NIC1 definition to boot.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Nov 12, 2022
1 parent a66ce73 commit f244e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/get-boot-info
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ get_dhcp_info
# 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)
NIC1=$(ls /sys/class/net/ | egrep '^en' | head -1)
echo "NIC1=$NIC1" >> $bootlog
fi

# DHCP should not overwrite the hostname if it's already set
Expand Down

0 comments on commit f244e12

Please sign in to comment.