From e0e62a33bb6c72ce864cbd17d9343732116233d6 Mon Sep 17 00:00:00 2001 From: dongshengyuan <545258830@qq.com> Date: Mon, 29 Jun 2026 14:54:51 +0800 Subject: [PATCH] logind: fix typo in reboot-to-boot-loader-entry path SetRebootToBootLoaderEntry on non-EFI systems wrote the boot loader entry name to /run/systemd/reboot-boot-to-loader-entry (wrong order), while the getter and unlink both use the correct path /run/systemd/reboot-to-boot-loader-entry. The written value was never read back, silently breaking the feature on non-EFI systems. Signed-off-by: dongshengyuan --- src/login/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 7472cf8ec4..14dfc6960e 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -3495,7 +3495,7 @@ static int method_set_reboot_to_boot_loader_entry( if (unlink("/run/systemd/reboot-to-boot-loader-entry") < 0 && errno != ENOENT) return -errno; } else { - r = write_string_file("/run/systemd/reboot-boot-to-loader-entry", v, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_LABEL); + r = write_string_file("/run/systemd/reboot-to-boot-loader-entry", v, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_LABEL); if (r < 0) return r; }