summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-21 14:39:32 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-06-24 12:52:50 +0800
commit0f9597ab801ad4591e943bd7efcb8f1549997fdd (patch)
treee6dbc24bab7e9dc3f1f2250025e3eacfffd8be7a /discover
parent9933fe75fd5f7f6a281a67deb3a8d919f5617f89 (diff)
downloadtalos-petitboot-0f9597ab801ad4591e943bd7efcb8f1549997fdd.tar.gz
talos-petitboot-0f9597ab801ad4591e943bd7efcb8f1549997fdd.zip
discover: Add logging for default boot option behaviour
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index e991662..46fecd2 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -425,6 +425,8 @@ static int default_timeout(void *arg)
return 0;
}
+ pb_log("Timeout expired, booting default option %s\n", opt->option->id);
+
boot(handler, handler->default_boot_option, NULL,
handler->dry_run, boot_status, handler);
return 0;
@@ -439,6 +441,8 @@ static void set_default(struct device_handler *handler,
if (!handler->default_enabled)
return;
+ pb_log("Boot option %s set as default\n", opt->option->id);
+
handler->default_boot_option = opt;
handler->sec_to_boot = DEFAULT_BOOT_TIMEOUT_SEC;
default_timeout(handler);
@@ -820,6 +824,8 @@ void device_handler_cancel_default(struct device_handler *handler)
if (!handler->default_boot_option)
return;
+ pb_log("Cancelling default boot option\n");
+
handler->default_boot_option = NULL;
status.type = BOOT_STATUS_INFO;
OpenPOWER on IntegriCloud