]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
kernel-install: rewrite in C
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Mar 2023 14:55:18 +0000 (23:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Jun 2023 05:23:54 +0000 (14:23 +0900)
commit42551ea7e923bac5df12b20e3e735a487d38dcd5
treec8fc3e0cdf17e2575bd56826b94e72600bbd9585
parent150231d25db10c7898e3ecc9bd848accda0d1c0f
kernel-install: rewrite in C

This is mostly a one-to-one translation of kernel-install.sh, except for
the followings:
- BOOT_ROOT is searched with find_{esp,xbootldr}_and_warn().
- entry token is searched with boot_entry_token_ensure().
- inspect command verboses more information, e.g. found plugins,
  environment variables explicitly passed to plugins, arguments passed
  to plugins.
- paths specified in $KERNEL_INSTALL_PLUGINS must be absolute.
- LC_COLLATE is set to C.UTF-8 (or any specified on build time).

By writing kernel-install C, we can share the code used by bootctl or
so, and can introduce --root and/or --image options later.
meson.build
src/kernel-install/kernel-install.c [new file with mode: 0644]
src/kernel-install/kernel-install.in [deleted file]
src/kernel-install/meson.build