summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2018-06-22 18:35:42 +0000
committerPMR <pmr@pmr-lander>2018-06-22 18:35:42 +0000
commit9eeddb666d6eed2bf69bdd9e03ddd9a0b8f42d7f (patch)
treea5f6cb0f91ff7b441f9dbbfcf1a139b3fbb4491c
parent0c6e9fd92ad70ff4d03a58046b9e3f40a4adbd69 (diff)
parent682176feb595226dbe94078670f71711bcc1454f (diff)
Merge #348283 from ~rodsmith/plainbox-provider-checkbox:fix-pxeboot-variable
-rwxr-xr-xbin/efi-pxeboot3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/efi-pxeboot b/bin/efi-pxeboot
index 724fefb..24ac231 100755
--- a/bin/efi-pxeboot
+++ b/bin/efi-pxeboot
@@ -49,6 +49,7 @@ def discover_data():
.splitlines())
boot_entries = {}
boot_order = []
+ boot_current = ""
if len(bootinfo) > 1:
for s in bootinfo:
if "BootOrder" in s:
@@ -103,7 +104,7 @@ def is_pxe_booted(boot_entries, boot_order, boot_current):
or "refind_" in desc:
# This string indicates a boot directly from the normal Ubuntu GRUB
# or rEFInd installation on the hard disk.
- print("The system seems to have booted directly from the hard disk!")
+ print("FAIL: The system has booted directly from the hard disk!")
retval = 1
elif "SATA" in desc or "Sata" in desc or "Hard Drive" in desc:
# These strings indicate booting with a "generic" disk entry (one