diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-09-23 13:06:48 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-10-11 14:39:42 +1100 |
commit | f64638f5a4f159297a74df9329afc6e73acf6d6b (patch) | |
tree | a4041d21cafe4e3621612ec976f436eb1996809d /ui | |
parent | de2f990a98718d15bff074b9ae65f2eb92a2f938 (diff) | |
download | talos-petitboot-1.3.1.tar.gz talos-petitboot-1.3.1.zip |
discover/pxe-parser: Parse only the first configv1.3.1
Commit 2163af5 "discover/pxe-parser: Retrieve configs asynchronously"
added asynchronous loading of remote pxe filenames, but made an
unintended change in behaviour to the PXE parser. Previously the parser
would try a list of possible filenames, and parse the first one it
found. However the above commit spawns an asynchronous job for every
filename, and parses any that can be retrieved. It is a common
configuration to have a machine-specific config and a 'fallback' default
config, and the change means we could erroneously retrieve and parse
both configs.
Update the PXE parser so that asynchronous jobs are spawned
sequentially. That is, spawn a job for the first filename and if not
successful spawn another job for the next filename, and so on. Once a
remote config is successfully retrieved, parse it and stop.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions