mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
[autoboot] Fix incorrect boolean logic
Commit 53d2d9e ("[uri] Generalise tftp_uri() to pxe_uri()") introduced
a regression in which an NFS root path would no longer be treated as
an unsupported root path, causing a boot with an NFS root path to fail
with a "Could not open SAN device" error.
Reported-by: David Evans <dave.evans55@googlemail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -379,8 +379,8 @@ int netboot ( struct net_device *netdev ) {
|
|||||||
* it may represent an NFS root.
|
* it may represent an NFS root.
|
||||||
*/
|
*/
|
||||||
if ( filename && root_path &&
|
if ( filename && root_path &&
|
||||||
( ! ( uri_is_absolute ( root_path ) ||
|
( ( ! uri_is_absolute ( root_path ) ) ||
|
||||||
( xfer_uri_opener ( root_path->scheme ) == NULL ) ) ) ) {
|
( xfer_uri_opener ( root_path->scheme ) == NULL ) ) ) {
|
||||||
printf ( "Ignoring unsupported root path\n" );
|
printf ( "Ignoring unsupported root path\n" );
|
||||||
uri_put ( root_path );
|
uri_put ( root_path );
|
||||||
root_path = NULL;
|
root_path = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user