Skip to content

Commit c58b46c

Browse files
mhiramatrostedt
authored andcommitted
Documentation: bootconfig: Add bootconfig override operator
Add a sentence about bootconfig override operator (":=") to bootconfig.rst. Link: https://lkml.kernel.org/r/159482884682.126704.7198860675721719878.stgit@devnote2 Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 8146419 commit c58b46c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Documentation/admin-guide/bootconfig.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ For example,::
7171
foo = bar, baz
7272
foo = qux # !ERROR! we can not re-define same key
7373

74+
If you want to update the value, you must use the override operator
75+
``:=`` explicitly. For example::
76+
77+
foo = bar, baz
78+
foo := qux
79+
80+
then, the ``qux`` is assigned to ``foo`` key. This is useful for
81+
overriding the default value by adding (partial) custom bootconfigs
82+
without parsing the default bootconfig.
83+
7484
If you want to append the value to existing key as an array member,
7585
you can use ``+=`` operator. For example::
7686

@@ -84,6 +94,7 @@ For example, following config is NOT allowed.::
8494

8595
foo = value1
8696
foo.bar = value2 # !ERROR! subkey "bar" and value "value1" can NOT co-exist
97+
foo.bar := value2 # !ERROR! even with the override operator, this is NOT allowed.
8798

8899

89100
Comments

0 commit comments

Comments
 (0)