No rEFInd entry could be found in the list of boot options, and so
no changes were made to the boot order list.
+.TP
+.B 4
+The script could not run because of OS issues -- the OS was not Linux,
+the \fIefibootmgr\fR utility was not available, or the script was not run
+as \fIroot\fR.
+
.SH "LIMITATIONS"
.TP
if sys.platform != "linux":
print("This program is useful only under Linux; exiting!")
- return(1)
+ return(4)
if shutil.which("efibootmgr") is None:
print("The efibootmgr utility is not installed; exiting!")
- return(1)
+ return(4)
if not os.geteuid() == 0:
print("This program must be run as root (or via sudo); exiting!")
- return(1)
+ return(4)
retval = 0
boot_entries, boot_order = discover_data()