From 9592666343f00968166d8fafb0625a09c0da1fc9 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 10 Apr 2018 12:28:39 +0200 Subject: [slx-issue] support for SLX_PXE_NETIF --- core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue') diff --git a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue index c70e0356..e2c78b28 100755 --- a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue +++ b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue @@ -35,7 +35,9 @@ done < "$INFILE" > "$TMPFILE" player=$(< /etc/vmware/config grep -m1 '^product.version' | awk -F= '{print $2}') kernel=$(uname -r) system="$(dmidecode -s system-manufacturer | grep -vP "unknown|filled|^#") $(dmidecode -s system-product-name | grep -vP "unknown|filled|^#")" -linkspeed=$(cat /sys/class/net/eth0/speed) +# Support the boot interface name eventually saved as SLX_PXE_NETIF +# from the new dracut-based stage3, fallback to old eth0 if not set +linkspeed=$(cat /sys/class/net/${SLX_PXE_NETIF:-eth0}/speed) tmpstatus=$(grep -m1 ' /tmp ' /proc/mounts | awk '{print $3}') if [ -z "$tmpstatus" ] || [ "$tmpstatus" = "tmpfs" ]; then tmpstatus="RAMDISK" -- cgit v1.2.3-55-g7522