Incorrect attempt to use root-path - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Incorrect attempt to use root-path (/showthread.php?tid=7868) |
Incorrect attempt to use root-path - angusj - 2015-11-15 12:58 It appears that a bug has crept into iPXE whereby what *should* be an unsupported root-path (eg an NFS root) is treated as "supported", resulting in a "Could not open SAN device" error. This looks like quite a recent bug, the version that ships with Ubuntu 14.04 works fine! The following patch (amending parenthesis closures) fixes the problem; although I'm quite new to iPXE I think this is correct, and will not have any undesirable side-effects: Code: angus@ganymede:src$ git diff master lincor -- usr/autoboot.c RE: Incorrect attempt to use root-path - NiKiZe - 2015-11-21 20:26 Could you gives some more info to reproduce the issue? An example root-path that you have confirmed to have this issue, as well as version number based on git commit that is shown as 1.0.0+ (gitid). Both for old version without issue and the new one with issue. also please try git master to see if it is resolved there, there is also precompiled files available at http://boot.ipxe.org RE: Incorrect attempt to use root-path - angusj - 2015-11-21 23:20 (2015-11-21 20:26)NiKiZe Wrote: Could you gives some more info to reproduce the issue? Example root-path (served by dnsmasq, so this is dnsmasq syntax): Code: dhcp-option=option:root-path,192.168.200.201:/lincor/terminals *Working* version is as packaged for Ubuntu 14.04: this is git commit #c3d1e78; git HEAD on master that I originally tried is commit #ed0d7c4; My modified (and working) version is based on #ed0d7c4 with the patch shown in my original post; Very latest master, just pulled a few minutes ago, is commit #309c588, and this still displays the issue. I tried attaching some screen-grabs but for some reason the upload failed. The error actually reported (by the latest version) is: Code: Could not open SAN device: Operation not supported (http://ipxe.org/3c092003) The working versions (Ubuntu, and latest with my own patch) report instead: Code: Ignoring unsupported root path and then continue to boot properly (and from looking at the code, that warning message is not unexpected). I haven't tried any pre-built binaries other than that in the Ubuntu 14:04 distro, since I have it working with a simple patch to the latest. RE: Incorrect attempt to use root-path - robinsmidsrod - 2015-11-22 13:35 angusj: Can you run a git bisect (http://ipxe.org/howto/bisect) to figure out exactly which commit introduced the bug and report back what git bisect tells you here? RE: Incorrect attempt to use root-path - angusj - 2015-11-22 15:30 I suspect the bug crept in while trying to simplify some tests on root_path, in function "netboot(...)", in src/usr/autoboot.c. Result of git bisect: Code: 53d2d9e3c37d6170341818a254e18d341ee15511 is the first bad commit |