diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-08-17 14:33:25 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-08-18 15:31:00 +1000 |
commit | 5b308c5680f349dd080f516f8c371efd67d496d5 (patch) | |
tree | aa8a2af8e2c315b66e482f9183fa9ec14c439b89 /discover/platform.c | |
parent | 61e30136d88c1e2cef353e09789dbb969be64f55 (diff) | |
download | petitboot-5b308c5680f349dd080f516f8c371efd67d496d5.zip petitboot-5b308c5680f349dd080f516f8c371efd67d496d5.tar.gz |
discover: Add disable param for dm-snapshots
Add a debug-style nvram parameter to disallow the use of device-mapper
snapshots.
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/platform.c')
-rw-r--r-- | discover/platform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c index b1d0f19..a6bd74c 100644 --- a/discover/platform.c +++ b/discover/platform.c @@ -35,6 +35,9 @@ static void dump_config(struct config *config) if (config->safe_mode) pb_log(" safe mode: active\n"); + if (config->disable_snapshots) + pb_log(" dm-snapshots disabled\n"); + for (i = 0; i < config->network.n_interfaces; i++) { struct interface_config *ifconf = config->network.interfaces[i]; @@ -109,6 +112,7 @@ void config_set_defaults(struct config *config) config->safe_mode = false; config->lang = NULL; config->allow_writes = true; + config->disable_snapshots = false; config->n_autoboot_opts = 2; config->autoboot_opts = talloc_array(config, struct autoboot_option, |