summaryrefslogtreecommitdiffstats
path: root/lib/pb-config
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-05-06 17:03:30 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-06 14:08:33 +1000
commitacc5ace6e58db2f3dceb1f7a27d0fc1fb29c4a27 (patch)
treed5577259029ad08d93de57e0a3560b6271627e8a /lib/pb-config
parent79bfd11f662fcf46bd4ae58a0aab993cbe158dbe (diff)
downloadtalos-petitboot-acc5ace6e58db2f3dceb1f7a27d0fc1fb29c4a27.tar.gz
talos-petitboot-acc5ace6e58db2f3dceb1f7a27d0fc1fb29c4a27.zip
Make read-only guarantee user-settable
Create a new Petitboot option 'petitboot,write?' that specifies whether the system is allowed to mount devices read-write. The option can be toggled by the user in the nc-config screen. Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'lib/pb-config')
-rw-r--r--lib/pb-config/pb-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pb-config/pb-config.c b/lib/pb-config/pb-config.c
index 98a6078..8200883 100644
--- a/lib/pb-config/pb-config.c
+++ b/lib/pb-config/pb-config.c
@@ -77,6 +77,8 @@ struct config *config_copy(void *ctx, const struct config *src)
dest->ipmi_bootdev = src->ipmi_bootdev;
dest->ipmi_bootdev_persistent = src->ipmi_bootdev_persistent;
+ dest->allow_writes = src->allow_writes;
+
if (src->lang && strlen(src->lang))
dest->lang = talloc_strdup(dest, src->lang);
else
OpenPOWER on IntegriCloud