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>
}
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");
#include <grub/util/misc.h>
extern int verbosity;
-extern const char *program_name;
+extern const char *EXPORT_VAR(program_name);
void grub_init_all (void);
void grub_fini_all (void);