]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[autoboot] Fix incorrect boolean logic
authorMichael Brown <mcb30@ipxe.org>
Tue, 19 Jan 2016 08:16:17 +0000 (08:16 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 19 Jan 2016 08:16:17 +0000 (08:16 +0000)
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>
src/usr/autoboot.c

index 8c6b6904e9895777eea01b1c56390273a1f349b4..e93b0150de4ce22872bed87a13b0ec7cb132f108 100644 (file)
@@ -379,8 +379,8 @@ int netboot ( struct net_device *netdev ) {
         * it may represent an NFS root.
         */
        if ( filename && root_path &&
-            ( ! ( uri_is_absolute ( root_path ) ||
-                  ( xfer_uri_opener ( root_path->scheme ) == NULL ) ) ) ) {
+            ( ( ! uri_is_absolute ( root_path ) ) ||
+              ( xfer_uri_opener ( root_path->scheme ) == NULL ) ) ) {
                printf ( "Ignoring unsupported root path\n" );
                uri_put ( root_path );
                root_path = NULL;