summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-kernel-args.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* lib/kernel-args: Store kernel args as key/value entriesRobert Fairley2019-11-071-77/+187
| | | | | | | | | | | | | Define an `OstreeKernelArgsEntry` structure, which holds both the key and the value. The kargs order array stores entries for each key/value pair, instead of just the keys. The hash table is used to locate entries, by storing entries in a pointer array for each key. The same public interface is preserved, while maintaining ordering information of each key/value pair when appending/replacing/deleting kargs. Fixes: #1859
* lib/kargs: Make API public and upstream new rpm-ostree APIsAllen Bai2019-06-181-33/+416
| | | | | | | | | | | | | | | | This change makes public the current kargs API in src/libostree/ostree-kernel-args.c and adds documentations. Upstreams the new kargs API from rpm-ostree/src/libpriv/rpmostree-kargs-process.c Merges libostree_kernel_args_la_SOURCES to libostree_1_la_SOURCES in Makefile-libostree.am Upstreams tests/check/test-kargs.c from rpm-ostree. Closes: #1833 Closes: #1869 Approved by: jlebon
* lib/kargs: allow empty-list argumentsLuca Bruno2018-12-101-22/+13
| | | | | | | | | | This adds support for empty-list arguments (e.g. `acpi_osi=`), which are semantically different from simple-keyword arguments. Ref: https://github.com/projectatomic/rpm-ostree/issues/1706 Closes: #1785 Approved by: cgwalters
* tree-wide: Use autoptr for OstreeKernelArgsColin Walters2017-10-251-7/+1
| | | | | | | | Much nicer looking. Prep for more cleanup from https://github.com/projectatomic/rpm-ostree/pull/1013 Closes: #1302 Approved by: peterbaouoft
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* Filter bootloader supplied kernel cmdline optionsSjoerd Simons2016-11-011-4/+39
| | | | | | | | | Various bootloader add kernel commandline options dynamically, filter these out when grabbing boot options from /proc/cmdline. Specifically grub adds BOOT_IMAGE and systemd-boot adds initrd. Closes: #560 Approved by: cgwalters
* _ostree_kernel_args_replace_take: don't leak when replacingSimon McVittie2016-10-301-4/+13
| | | | | | | | | | | | | | | If !existed, then we add arg to kargs->order, where it will be freed by that array's free-function. However, if the kernel argument did already exist, we have to either free arg ourselves (and make sure the old key is what appears in the hash table), or do a linear search on kargs->order to replace the old key with the new. Leak found by valgrind memcheck. Signed-off-by: Simon McVittie <smcv@debian.org> Closes: #559 Approved by: cgwalters
* libglnx porting: gs_free -> g_autofreeColin Walters2016-03-181-2/+2
| | | | There were surprisingly few uses left.
* Remove unnecessary #include "libgsystem.h"Matthew Barnes2015-05-061-1/+0
|
* Use g_auto(GStrv) instead of gs_strfreevMatthew Barnes2015-05-061-1/+1
|
* Use g_autoptr() for GIO object typesMatthew Barnes2015-05-061-1/+1
| | | | | GLib 2.44 supplies all the necessary autocleanup macros for GIO types, and libglnx backports the relevant macros for ostree.
* Use g_autofree instead of gs_freeMatthew Barnes2015-05-061-1/+1
|
* Juggling libglnx.h includesMatthew Barnes2015-05-061-0/+1
|
* ostree admin instutil set-kargs: make more flexibleOwen W. Taylor2014-09-261-0/+24
| | | | | | | | | | | | | 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
* deploy: Rework kernel arguments, add --karg-append to "admin deploy"Colin Walters2014-01-161-0/+263
The "ordered hash" code was really just for kernel arguments. And it turns out it needs to be a multihash (for e.g. multiple console= arguments). So turn the OstreeOrderedHash into OstreeKernelArgs, and move the bits to split key=value and such into there. Now we're not making this public API yet - the public OstreeSysroot just takes char **kargs. To facilitate code reuse between ostree/ and libostree/, make it a noinst libtool library. It'll be duplicated in the binary and library, but that's OK for now. We can investigate making OstreeKernelArgs public later. https://bugzilla.gnome.org/show_bug.cgi?id=721136