]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 8 Mar 2012 23:56:22 +0000 (00:56 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 8 Mar 2012 23:56:22 +0000 (00:56 +0100)
message.
* util/grub-install.in: Fix anf gettextize error message.

ChangeLog
grub-core/commands/i386/pc/sendkey.c
util/grub-install.in

index def7262f66002d6abc7cb651924955c618265222..671b6af438ead22902a8326ca58e041dd4c8915f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
+       message.
+       * util/grub-install.in: Fix anf gettextize error message.
+
 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
index dbc69d49f2b2b518ddf394662c69868c49713dc0..17f648d78cbb57ff305f4852a76f56b811265bcf 100644 (file)
@@ -373,7 +373,7 @@ GRUB_MOD_INIT (sendkey)
                              N_("[KEYSTROKE1] [KEYSTROKE2] ..."),
                              /* TRANSLATORS: It can emulate multiple
                                 keypresses.  */
-                             N_("Emulate a keystroke"), options);
+                             N_("Emulate a keystroke sequence"), options);
 
   preboot_hook 
     = grub_loader_register_preboot_hook (grub_sendkey_preboot, 
index cac28cf70d843898a131a0026fe56f0e037015e6..f5ecffb7964d8aa6d9330f9403b8f18d55713b03 100644 (file)
@@ -539,7 +539,10 @@ if test -f "${pkgdatadir}"/unicode.pf2; then
     cp "${pkgdatadir}"/unicode.pf2 "${grubdir}"/fonts
 fi
 
-is_path_readable_by_grub "${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform" || (echo "${grubdir}" not readable 1>&2 ; exit 1)
+if ! is_path_readable_by_grub "${grubdir}"; then
+    gettext_printf "Path \`%s' is not readable by GRUB on boot. Installation is impossible. Aborting.\n" "${grubdir}" 1>&2
+    exit 1
+fi
 
 # Write device to a variable so we don't have to traverse /dev every time.
 grub_device="`"$grub_probe" --device-map="${device_map}" --target=device "${grubdir}"`" || exit 1