summaryrefslogtreecommitdiff
path: root/src/boot/bootctl-install.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-26 16:33:43 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-03-27 09:51:18 +0200
commit9e43296fd2c4959f045859d248a4e78fcfcceae6 (patch)
tree6eec450ebe932e55056b64ac7a6c4965c1c48ad1 /src/boot/bootctl-install.c
parent600362aa11af5af90125aacc8ad7612a5cb80a68 (diff)
downloadsystemd-9e43296fd2c4959f045859d248a4e78fcfcceae6.tar.gz
bootctl: split-out entry token related definitions into boot-entry.[ch]
No functional change, just preparation for later commits. These can be used in kernel-install later. Note, unlike the our usual coding style, the arguments for boot_entry_token_ensure() and parse_boot_entry_token_type() are referenced, updated, and may freed, hence, always pass initialized values. That's why they are not named as 'ret_xyz'.
Diffstat (limited to 'src/boot/bootctl-install.c')
-rw-r--r--src/boot/bootctl-install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/bootctl-install.c b/src/boot/bootctl-install.c
index dc7ea8c5ca..a50f984a23 100644
--- a/src/boot/bootctl-install.c
+++ b/src/boot/bootctl-install.c
@@ -133,7 +133,7 @@ static int settle_make_entry_directory(void) {
bool layout_type1 = use_boot_loader_spec_type1();
if (arg_make_entry_directory < 0) { /* Automatic mode */
if (layout_type1) {
- if (arg_entry_token_type == ARG_ENTRY_TOKEN_MACHINE_ID) {
+ if (arg_entry_token_type == BOOT_ENTRY_TOKEN_MACHINE_ID) {
r = path_is_temporary_fs("/etc/machine-id");
if (r < 0)
return log_debug_errno(r, "Couldn't determine whether /etc/machine-id is on a temporary file system: %m");
@@ -510,7 +510,7 @@ static int install_entry_token(void) {
/* Let's save the used entry token in /etc/kernel/entry-token if we used it to create the entry
* directory, or if anything else but the machine ID */
- if (!arg_make_entry_directory && arg_entry_token_type == ARG_ENTRY_TOKEN_MACHINE_ID)
+ if (!arg_make_entry_directory && arg_entry_token_type == BOOT_ENTRY_TOKEN_MACHINE_ID)
return 0;
p = path_join(arg_root, etc_kernel(), "entry-token");