summaryrefslogtreecommitdiffstats
path: root/discover/platform-powerpc.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-17 14:33:25 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-18 15:31:00 +1000
commit5b308c5680f349dd080f516f8c371efd67d496d5 (patch)
treeaa8a2af8e2c315b66e482f9183fa9ec14c439b89 /discover/platform-powerpc.c
parent61e30136d88c1e2cef353e09789dbb969be64f55 (diff)
downloadpetitboot-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-powerpc.c')
-rw-r--r--discover/platform-powerpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index fc96305..d45cced 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -54,6 +54,7 @@ static const char *known_params[] = {
"petitboot,language",
"petitboot,debug?",
"petitboot,write?",
+ "petitboot,snapshots?",
NULL,
};
@@ -553,6 +554,10 @@ static void populate_config(struct platform_powerpc *platform,
val = get_param(platform, "petitboot,write?");
if (val)
config->allow_writes = !strcmp(val, "true");
+
+ val = get_param(platform, "petitboot,snapshots?");
+ if (val)
+ config->disable_snapshots = !strcmp(val, "false");
}
static char *iface_config_str(void *ctx, struct interface_config *config)
OpenPOWER on IntegriCloud