diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-07-21 18:18:35 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-22 09:04:59 +0800 |
commit | d2b12ddb905a74fa6b2e454142b0b9f71fd99398 (patch) | |
tree | ef6ab12a56aa0dc9fc0f6b35795ed2b9f01c0411 /lib/types | |
parent | 3c49b3fa6e6038fd226253e71cb082e09b4ff7a5 (diff) | |
download | petitboot-d2b12ddb905a74fa6b2e454142b0b9f71fd99398.zip petitboot-d2b12ddb905a74fa6b2e454142b0b9f71fd99398.tar.gz |
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')
-rw-r--r-- | lib/types/types.h | 1 |
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; |