mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
loader/emu/linux: Fix determination of program name
Current code works only if package matches binary name transformation rules. It's often true but is not guaranteed. Fixes: https://savannah.gnu.org/bugs/?64410 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
828717833f
commit
f171122f03
2 files changed
+2
-2
No files matched your search
@@ -68,7 +68,7 @@ grub_linux_boot (void)
|
||||
}
|
||||
|
||||
if (kexecute < 1)
|
||||
grub_fatal (N_("use '"PACKAGE"-emu --kexec' to force a system restart"));
|
||||
grub_fatal (N_("use '%s %s' to force a system restart"), program_name, "--kexec");
|
||||
|
||||
grub_dprintf ("linux", "Performing 'systemctl kexec' (%s) ",
|
||||
(kexecute==1) ? "do-or-die" : "just-in-case");
|
||||
|
||||
Reference in new issue
Block a user