|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1 of 3 RESEND] libxl: Look for bootloader in libexec path
On 09/05/12 14:39, Ian Campbell wrote: I think since libxl uses execvp the first two are handled by path expansion, the next two are what you are adding (so has priority over $PATH in your patch, which I think is OK) and the last one is irrelevant in this context (xend uses the same function for other contexts). However in order to not differ on the first two execvp needs to be given the opportunity to search the path, which means that you need to check of your newly constructed bootloader exists, and if it doesn't then try and continue with the relative path not the absolute one. Also since this patch comes before the rename+symlink patch as it stands this patch will temporarily break people who just have "pygrub" without a path in their config. Ah, I didn't realize that xl would already search the path (via execvp).I think it should be pretty straightforward to add a check for existence, and if not fall back to letting execvp search the path. If I do that, arguably this patch would still come first in the series? Not that it matters much, really. -George Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |