diff options
author | Bill Peck <bpeck@redhat.com> | 2015-09-21 20:57:42 -0400 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2015-09-21 20:57:42 -0400 |
commit | 511521305c0971925458e92d4d541b3f00281d8f (patch) | |
tree | 09f0e3fe07ada5d32ab8aaca8fb52631e855d620 | |
parent | c5162a727a774cd19d9c0d65f6866156b75366bc (diff) | |
download | tests-511521305c0971925458e92d4d541b3f00281d8f.tar.gz tests-511521305c0971925458e92d4d541b3f00281d8f.tar.xz tests-511521305c0971925458e92d4d541b3f00281d8f.zip |
put netboot back as the first entry
-rwxr-xr-x | firmware/amd_seattle/runtest.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |