mirror of https://github.com/ipxe/ipxe.git
[autoboot] Use a custom error number for "nothing to boot"
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
7617e36f9e
commit
e583afb977
|
@ -41,6 +41,11 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
|||
*
|
||||
*/
|
||||
|
||||
/* Disambiguate the various error causes */
|
||||
#define ENOENT_BOOT __einfo_error ( EINFO_ENOENT_BOOT )
|
||||
#define EINFO_ENOENT_BOOT \
|
||||
__einfo_uniqify ( EINFO_ENOENT, 0x01, "Nothing to boot" )
|
||||
|
||||
/**
|
||||
* Perform PXE menu boot when PXE stack is not available
|
||||
*/
|
||||
|
@ -185,7 +190,7 @@ int uriboot ( struct uri *filename, struct uri *root_path ) {
|
|||
rc = 0;
|
||||
}
|
||||
} else {
|
||||
rc = -ENOENT;
|
||||
rc = -ENOENT_BOOT;
|
||||
printf ( "Nothing to boot: %s\n", strerror ( rc ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue