From 511521305c0971925458e92d4d541b3f00281d8f Mon Sep 17 00:00:00 2001 From: Bill Peck Date: Mon, 21 Sep 2015 20:57:42 -0400 Subject: put netboot back as the first entry --- firmware/amd_seattle/runtest.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/amd_seattle/runtest.sh b/firmware/amd_seattle/runtest.sh index bd79b30..c0ee38b 100755 --- a/firmware/amd_seattle/runtest.sh +++ b/firmware/amd_seattle/runtest.sh @@ -15,6 +15,13 @@ reboot_to_efi_shell() { shutdown -r now } +enable_netboot() { + netboot=$(efibootmgr | grep 'Network Port00' | cut -c5-8) + bootoder=$(efibootmgr | grep 'BootOrder' | awk '{ print $2 }') + neworder=$(echo $netboot,$(echo $bootorder | sed -e "s/,$netboot//")) + efibootmgr -o $neworder +} + if [ -n "$RSTRNT_REBOOTCOUNT" ]; then if [ $RSTRNT_REBOOTCOUNT -eq 0 ]; then echo "Setup Firmware install" @@ -22,6 +29,7 @@ if [ -n "$RSTRNT_REBOOTCOUNT" ]; then ./upBIOS $BIOS reboot_to_efi_shell else + enable_netboot rstrnt-report-result $RSTRNT_TASKNAME PASS fi fi -- cgit