]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: fix wrong type comparison
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Mar 2023 19:37:49 +0000 (04:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Mar 2023 04:58:20 +0000 (13:58 +0900)
src/boot/bootctl-install.c

index f520fc7ffaaef073146886163092b4e4ae773d0c..6d356d640fb3f300f92b7515979131dec8cdf2df 100644 (file)
@@ -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");