forked from Mirror/pmbootstrap
Add sanity check for "systemd" config values (MR 2273)
Make sure users don't set systemd to "true" or other not allowed values (allowed are "always", "default", "never"). Check for it: * after loading the config * when using 'pmbootstrap config systemd <newvalue>'
This commit is contained in:
parent
de5e4c6962
commit
4478116379
4 changed files with 29 additions and 2 deletions
|
@ -213,6 +213,7 @@ def config(args):
|
|||
pmb.config.save(args, cfg)
|
||||
elif args.value is not None:
|
||||
cfg["pmbootstrap"][args.name] = args.value
|
||||
pmb.config.sanity_checks(args, cfg, False)
|
||||
logging.info("Config changed: " + args.name + "='" + args.value + "'")
|
||||
pmb.config.save(args, cfg)
|
||||
elif args.name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue