summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-20 16:09:58 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-28 13:46:03 +1000
commit7f5a99f015cb1f48f73acb921beced6daf9fa15d (patch)
tree89f78cd714b4b5692feb4999afa55db550d51602 /discover/device-handler.h
parent27c55969c0678e48893be5aa630b657a0eae7530 (diff)
downloadtalos-petitboot-7f5a99f015cb1f48f73acb921beced6daf9fa15d.tar.gz
talos-petitboot-7f5a99f015cb1f48f73acb921beced6daf9fa15d.zip
discover: Let 'boot' user-event boot by name
If a 'name' parameter is used for a boot user event, search existing boot options for one that matches that name on the given device. This allows a pb-event user to boot based on name rather than having to specify the exact boot arguments. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 3ca88e4..9696ec0 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -157,6 +157,9 @@ void discover_device_set_param(struct discover_device *device,
const char *discover_device_get_param(struct discover_device *device,
const char *name);
+struct discover_boot_option *device_handler_find_option_by_name(
+ struct device_handler *handler, const char *device,
+ const char *name);
void device_handler_boot(struct device_handler *handler,
struct boot_command *cmd);
void device_handler_cancel_default(struct device_handler *handler);
OpenPOWER on IntegriCloud