1
0
Fork 0
alistair23-linux/tools/bootconfig/samples
Masami Hiramatsu 4e4694d872 bootconfig: Prohibit re-defining value on same key
Currently, bootconfig adds a new value on the existing key to the tail of an
array. But this looks a bit confusing because an admin can easily rewrite
the original value in the same config file.

This rejects the following value re-definition.

  key = value1
  ...
  key = value2

You should rewrite value1 to value2 in this case.

Link: http://lkml.kernel.org/r/158227282199.12842.10110929876059658601.stgit@devnote2

Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
[ Fixed spelling of arraies to arrays ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-02-21 09:59:19 -05:00
..
bad-array-space-comment.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-array.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-dotword.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-empty.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-keyerror.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-longkey.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-manywords.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-mixed-kv1.bconf bootconfig: Reject subkey and value on same parent key 2020-02-20 17:54:09 -05:00
bad-mixed-kv2.bconf bootconfig: Reject subkey and value on same parent key 2020-02-20 17:54:09 -05:00
bad-no-keyword.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-nonprintable.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-samekey.bconf bootconfig: Prohibit re-defining value on same key 2020-02-21 09:59:19 -05:00
bad-spaceword.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-tree.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
bad-value.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
escaped.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-array-space-comment.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-comment-after-value.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-printables.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-simple.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-single.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-space-after-value.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
good-tree.bconf tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00