From f143c83ab6033b36f304a09ed06d85958d413fce Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 29 Dec 2023 19:12:00 +0100 Subject: [PATCH] grub/boot: add network community fix for dell systems Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 12 ++++++------ files/p1/boot/grub/grub.cfg | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index de0cfdb1..869e16f4 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -122,17 +122,17 @@ CMDLINE['earlycon']="uart8250,io,0x3f8,115200n8" CMDLINE['root']="/dev/md0" CMDLINE['loglevel']="15" CMDLINE['log_buf_len']="32M" -CMDLINE['sn']="${SN}" CMDLINE['net.ifnames']="0" -CMDLINE['netif_num']="0" +CMDLINE['biosdevname']="0" +CMDLINE['sn']="${SN}" if [ "${MACSYS}" = "hardware" ]; then [[ -z "${MAC1}" && -n "${MAC2}" ]] && MAC1=${MAC2} && MAC2="" # Sanity check - [ -n "${MAC1}" ] && CMDLINE['mac1']="${MAC1}" && CMDLINE['netif_num']="1" && CMDLINE['skip_vender_mac_interfaces']="0,1,2,3,4,5,6,7" - [ -n "${MAC2}" ] && CMDLINE['mac2']="${MAC2}" && CMDLINE['netif_num']="2" && CMDLINE['skip_vender_mac_interfaces']="0,1,2,3,4,5,6,7" + [ -n "${MAC1}" ] && CMDLINE['netif_num']="1" && CMDLINE['mac1']="${MAC1}" && CMDLINE['skip_vender_mac_interfaces']="0,1,2,3,4,5,6,7" + [ -n "${MAC2}" ] && CMDLINE['netif_num']="2" && CMDLINE['mac2']="${MAC2}" && CMDLINE['skip_vender_mac_interfaces']="0,1,2,3,4,5,6,7" elif [ "${MACSYS}" = "custom" ]; then [[ -z "${MAC1}" && -n "${MAC2}" ]] && MAC1=${MAC2} && MAC2="" # Sanity check - [ -n "${MAC1}" ] && CMDLINE['mac1']="${MAC1}" && CMDLINE['netif_num']="1" && CMDLINE['skip_vender_mac_interfaces']="1,2,3,4,5,6,7" - [ -n "${MAC2}" ] && CMDLINE['mac2']="${MAC2}" && CMDLINE['netif_num']="2" && CMDLINE['skip_vender_mac_interfaces']="2,3,4,5,6,7" + [ -n "${MAC1}" ] && CMDLINE['netif_num']="1" && CMDLINE['mac1']="${MAC1}" && CMDLINE['skip_vender_mac_interfaces']="1,2,3,4,5,6,7" + [ -n "${MAC2}" ] && CMDLINE['netif_num']="2" && CMDLINE['mac2']="${MAC2}" && && CMDLINE['skip_vender_mac_interfaces']="2,3,4,5,6,7" fi # Read cmdline diff --git a/files/p1/boot/grub/grub.cfg b/files/p1/boot/grub/grub.cfg index e0da1ad6..2fe5bab1 100644 --- a/files/p1/boot/grub/grub.cfg +++ b/files/p1/boot/grub/grub.cfg @@ -67,7 +67,7 @@ function set_gfxpayload { } set TERM=tty2 -set ARC_CMDLINE="net.ifnames=0" +set ARC_CMDLINE="net.ifnames=0 biosdevname=0" search --set=root --label "ARC3" if [ -s /zImage-dsm -a -s /initrd-dsm ]; then