]> code.delx.au - refind/commitdiff
Tweaked refind-mkdefault return values for some error conditions.
authorsrs5694 <srs5694@users.sourceforge.net>
Sat, 23 Apr 2016 23:11:08 +0000 (19:11 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Sat, 23 Apr 2016 23:11:08 +0000 (19:11 -0400)
docs/man/refind-mkdefault.8
refind-mkdefault

index e8ae0c5d760c38f5cc4f2bcdfbff0c4b4e205f1d..3ac2dde8e3b707befd4c7ee7790f9198b0e063f2 100644 (file)
@@ -99,6 +99,12 @@ a buggy EFI or badly damaged NVRAM contents.
 No rEFInd entry could be found in the list of boot options, and so
 no changes were made to the boot order list.
 
 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
 .SH "LIMITATIONS"
 
 .TP
index 39d7ef7e2ed571dbdcaddead32c1ccfda2660a49..a48ac5d237d3b5ab23ad4e66c1c98e2a32f73213 100755 (executable)
@@ -172,13 +172,13 @@ def main():
 
     if sys.platform != "linux":
         print("This program is useful only under Linux; exiting!")
 
     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!")
     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!")
     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()
 
     retval = 0
     boot_entries, boot_order = discover_data()