summaryrefslogtreecommitdiffstats
path: root/src/boot
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-19 20:37:49 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-20 05:58:20 +0100
commitde2c62e847f3b5b0c0796396086ebdce4e8a9ca4 (patch)
treeb1f936bea366b4da2d299b17f6d3995810784e82 /src/boot
parentMerge pull request #26886 from ldv-alt/udevadm-verify (diff)
downloadsystemd-de2c62e847f3b5b0c0796396086ebdce4e8a9ca4.tar.xz
systemd-de2c62e847f3b5b0c0796396086ebdce4e8a9ca4.zip
bootctl: fix wrong type comparison
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/bootctl-install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl-install.c b/src/boot/bootctl-install.c
index f520fc7ffa..6d356d640f 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 == ARG_ENTRY_TOKEN_MACHINE_ID) {
+ if (arg_entry_token_type == ARG_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");