diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-05-06 17:03:30 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-08-06 14:08:33 +1000 |
commit | acc5ace6e58db2f3dceb1f7a27d0fc1fb29c4a27 (patch) | |
tree | d5577259029ad08d93de57e0a3560b6271627e8a /discover/platform.c | |
parent | 79bfd11f662fcf46bd4ae58a0aab993cbe158dbe (diff) | |
download | talos-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 'discover/platform.c')
-rw-r--r-- | discover/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c index 74e2a82..b1d0f19 100644 --- a/discover/platform.c +++ b/discover/platform.c @@ -108,6 +108,7 @@ void config_set_defaults(struct config *config) config->network.n_dns_servers = 0; config->safe_mode = false; config->lang = NULL; + config->allow_writes = true; config->n_autoboot_opts = 2; config->autoboot_opts = talloc_array(config, struct autoboot_option, |