ostree admin instutil set-kargs: make more flexible

Add command line arguments:
 --import-proc-cmdline: import values from /proc/cmdline
 --merge: import current values
 --replace=ARG=VALUE: replace value
 --append=ARG=VALUE: append a new argument

Extra command line arguments are treated like --append=, which
gives backwards compatibility.

https://bugzilla.gnome.org/show_bug.cgi?id=731051
This commit is contained in:
Owen W. Taylor committed 2014-09-26 10:40:37 -04:00
1 parent edf9cf5a7f
commit 262cba09c0
5 files changed
+84 -24

No files matched your search

+5 -2
View File
@@ -75,10 +75,13 @@ Boston, MA 02111-1307, USA.
</varlistentry>
<varlistentry>
<term><command>set-kargs</command></term>
<term><command>set-kargs <arg choice="opt">--merge</arg> <arg choice="opt">--import-proc-cmdline</arg> <arg choice="opt">--append=ARG</arg> <arg choice="opt">--replace=ARG</arg> <arg choice="opt">MORE_APPEND_ARGS</arg></command></term>
<listitem><para>
Replace the kernel arguments of the default deployment.
Replace the kernel arguments of the default deployment. The new arguments are based
on an empty list (the default), the current options (--merge), or the arguments
of the loaded kernel (--import-proc-cmdline), and new options either are added to the
end (--append=ARG) or replace existing arguments of the same name (--replace=ARG).
</para></listitem>
</varlistentry>
</variablelist>