]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub.d/00_header.in: Add safety check to make sure that
authorColin Watson <cjwatson@ubuntu.com>
Wed, 2 Jun 2010 12:57:13 +0000 (13:57 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 2 Jun 2010 12:57:13 +0000 (13:57 +0100)
${locale_dir} exists before trying to probe it.

ChangeLog
util/grub.d/00_header.in

index 61e4ea8ec27a41ca3925360a23003989491e8fe1..fb73905e22efacc114bd0df4a2257f2015b3db2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
+
+       * util/grub.d/00_header.in: Add safety check to make sure that
+       ${locale_dir} exists before trying to probe it.
+
 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
 
        * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
index df8f5dfaa13e2f7290b0ce1e5f33c06f16afa05b..0a5cfac18217255947e4972bffcac3d39334df0d 100644 (file)
@@ -195,7 +195,7 @@ EOF
 esac
 
 # Gettext variables and module
-if [ "x${LANG}" != "xC" ] ; then
+if [ "x${LANG}" != "xC" ] && [ -d "${locale_dir}" ] ; then
     prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir})
   cat << EOF
 set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})