summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-07-23 14:20:12 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-08-05 12:42:18 +0800
commit71da0c6cb80e3708213a08c06e71f099534bcd2a (patch)
treee8327fd499bebdfb54a38a8f544f8079936bf806 /lib
parent6897abaa97a02e0ab8ac07209a5e4966bfe101c5 (diff)
downloadtalos-petitboot-71da0c6cb80e3708213a08c06e71f099534bcd2a.tar.gz
talos-petitboot-71da0c6cb80e3708213a08c06e71f099534bcd2a.zip
discover: Add debug flag to config
This change adds a debug flag to the config, and groups it under not-user-modifiable parts of struct config. This means we no longer need the pb-sysinfo helper, as the last remaining function (--debug-enabled) can be implemented with pb-config. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/types/types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 5536e2a..25bf556 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -121,12 +121,15 @@ 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;
char *boot_device;
char *lang;
+
+ /* not user-settable */
+ bool safe_mode;
+ bool debug;
};
#endif /* _TYPES_H */
OpenPOWER on IntegriCloud