]> git.ipfire.org Git - thirdparty/systemd.git/commit
kernel-install: allocate "Context" object only in verb_xyz() functions, not already... 40610/head
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Sep 2025 08:40:43 +0000 (10:40 +0200)
committerLennart Poettering <lennart@amutable.com>
Mon, 9 Feb 2026 09:21:16 +0000 (10:21 +0100)
commitcfee2c19003cddd61f6633b3d4b851c8f73ad8fe
tree1c8e7dde9039b2a5a71b75972b6285b96181c557
parent533afe86c3b04a96b8fbb0d1fcb260f01c460fa9
kernel-install: allocate "Context" object only in verb_xyz() functions, not already in run()

We soon want to add a Varlink interface to this, but that means that the
various paramaters for the Context object will be sourced from a Varlink
message not from the command line. Hence split apart the parsing logic
so that we alway parse the command line into arg_xyz first, and then,
inside the verb_abc() calls copy the data from there into the Context
object.

This matches a similar pattern in bootctl.
src/kernel-install/kernel-install.c