]> git.ozlabs.org Git - petitboot/commitdiff
discover/pxe-parser: Fix relative parsing for manual config files
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 12 Dec 2017 03:05:40 +0000 (14:05 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 12 Dec 2017 05:15:59 +0000 (16:15 +1100)
Manually specified config files are asynchronously downloaded by
device_handler_process_url() before being parsed. This overwrites the
'pxeconffile' parameter, causing the parser to create relative paths
relative to the downloaded file's path, not the original remote path.

Work around this by setting 'pxeconffile-local' instead to differentiate
between the original config file's location and the local copy.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>

No differences found