grub/boot: add network community fix for dell systems

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2023-12-29 19:12:00 +01:00
parent 476244d2bd
commit f143c83ab6
2 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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