diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-09-18 08:54:05 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-09-18 10:00:09 +0800 |
commit | a60ef7083d77029e7bd6f0b948c560c239406dbf (patch) | |
tree | 01225967efd66b308eb6312558355d56d5d46068 /discover | |
parent | a249555fa8be3f01f692088f867de8d8b3e45990 (diff) | |
download | talos-petitboot-a60ef7083d77029e7bd6f0b948c560c239406dbf.tar.gz talos-petitboot-a60ef7083d77029e7bd6f0b948c560c239406dbf.zip |
lib/pb-config: Add autoboot timeout to configuration vars
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/device-handler.c | 2 | ||||
-rw-r--r-- | discover/device-handler.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index ccc7cc3..a06dafc 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -419,7 +419,7 @@ static void set_default(struct device_handler *handler, return; handler->default_boot_option = opt; - handler->sec_to_boot = DEFAULT_BOOT_TIMEOUT_SEC; + handler->sec_to_boot = config_get()->autoboot_timeout_sec; pb_log("Boot option %s set as default, timeout %u sec.\n", opt->option->id, handler->sec_to_boot); diff --git a/discover/device-handler.h b/discover/device-handler.h index 693f5e4..0cd9c59 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -3,8 +3,6 @@ #include <list/list.h> -#define DEFAULT_BOOT_TIMEOUT_SEC 10 - struct device_handler; struct discover_device; struct discover_server; |