From d2b12ddb905a74fa6b2e454142b0b9f71fd99398 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 21 Jul 2014 18:18:35 +0800 Subject: 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 --- lib/types/types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/types/types.h') 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; -- cgit v1.2.1