]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-install.in: ${imgext} won't be defined here until the
authorColin Watson <cjwatson@ubuntu.com>
Fri, 10 Sep 2010 12:47:16 +0000 (13:47 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Fri, 10 Sep 2010 12:47:16 +0000 (13:47 +0100)
install branch is merged.  For the meantime, only verify core.img on
i386-pc and sparc64-ieee1275 platforms.

ChangeLog
util/grub-install.in

index 1abd195561f6f4cb23c10108cee6158a5385b2ae..3a7a75e20a6f0bfef76c4322fea0b3df28794cce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-10  Colin Watson  <cjwatson@ubuntu.com>
+
+       * util/grub-install.in: ${imgext} won't be defined here until the
+       install branch is merged.  For the meantime, only verify core.img on
+       i386-pc and sparc64-ieee1275 platforms.
+
 2010-09-10  Robert Millan  <rmh@gnu.org>
 
        Solaris support in grub_find_zpool_from_dir().  Thanks
index 4de5dbc4a1dc128536fac0dc307f7c609b3244f7..c30f900dbfee9bd85c084ba9c6c3eae48d5dc30e 100644 (file)
@@ -402,7 +402,14 @@ case "${target_cpu}-${platform}" in
 esac
 
 # Verify readability of a few critical files
-for file in grubenv core.${imgext} normal.mod ; do
+# verify_files is a temporary workaround; drop this once the install branch
+# is merged.
+verify_files=grubenv
+if [ "${target_cpu}-${platform}" = "i386-pc" ] || [ "${target_cpu}-${platform}" = "sparc64-ieee1275" ]; then
+    verify_files="$verify_files core.img"
+fi
+verify_files="$verify_files normal.mod"
+for file in $verify_files ; do
     if is_path_readable_by_grub ${grubdir}/${file} ${grub_device} ${relative_grubdir}/${file} ; then : ; else
         echo "GRUB is unable to read ${grubdir}/${file}" >&2
         exit 1