summaryrefslogtreecommitdiffstats
path: root/lib/types/types.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-07-21 18:18:35 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-22 09:04:59 +0800
commitd2b12ddb905a74fa6b2e454142b0b9f71fd99398 (patch)
treeef6ab12a56aa0dc9fc0f6b35795ed2b9f01c0411 /lib/types/types.h
parent3c49b3fa6e6038fd226253e71cb082e09b4ff7a5 (diff)
downloadtalos-petitboot-d2b12ddb905a74fa6b2e454142b0b9f71fd99398.tar.gz
talos-petitboot-d2b12ddb905a74fa6b2e454142b0b9f71fd99398.zip
discover: Add safe mode
Safe mode configures the discover server to not start any device parsing; this can be used to diagnose any problems with early device handing. In safe mode, we don't initialise any of the device sources - udev, network and user events are disabled. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r--lib/types/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 762530a..0333a02 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -121,6 +121,7 @@ struct boot_priority {
struct config {
bool autoboot_enabled;
unsigned int autoboot_timeout_sec;
+ bool safe_mode;
struct network_config network;
struct boot_priority *boot_priorities;
unsigned int n_boot_priorities;
OpenPOWER on IntegriCloud