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 /utils/pb-config.c | |
parent | 61e30136d88c1e2cef353e09789dbb969be64f55 (diff) | |
download | talos-petitboot-5b308c5680f349dd080f516f8c371efd67d496d5.tar.gz talos-petitboot-5b308c5680f349dd080f516f8c371efd67d496d5.zip |
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 'utils/pb-config.c')
-rw-r--r-- | utils/pb-config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/pb-config.c b/utils/pb-config.c index 009bec7..c52180b 100644 --- a/utils/pb-config.c +++ b/utils/pb-config.c @@ -79,6 +79,8 @@ static void print_config(void *ctx, struct config *config, const char *var) config->safe_mode ? "enabled" : "disabled"); print_one_config(ctx, var, "debug", "%s", config->debug ? "enabled" : "disabled"); + print_one_config(ctx, var, "dm-snapshots", "%s", + config->disable_snapshots ? "disabled" : "enabled"); } int main(int argc, char **argv) |