]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
authorColin Watson <cjwatson@ubuntu.com>
Thu, 9 Sep 2010 16:17:45 +0000 (17:17 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Thu, 9 Sep 2010 16:17:45 +0000 (17:17 +0100)
and grub-core/disk/host.c to ...
(grub-fstest): ... here.  Having the host disk implementation
present confuses grub-probe and other utility programs.
* util/grub-mkconfig.in: Only verify readability of grub.cfg.new
when writing to a file, not when writing to stdout.

ChangeLog
Makefile.util.def
util/grub-mkconfig.in

index cd53ca445ec4b6d22c926e7644fb2ea0721c441d..a51619eef4d2df2af8840dc46e19d83e6a0c8d55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-09  Colin Watson  <cjwatson@ubuntu.com>
+
+       * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
+       and grub-core/disk/host.c to ...
+       (grub-fstest): ... here.  Having the host disk implementation
+       present confuses grub-probe and other utility programs.
+
+       * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
+       when writing to a file, not when writing to stdout.
+
 2010-09-09  BVK Chaitanya  <bvk.groups@gmail.com>
 
        * tests/partmap_test.in: New test for partitions.
index b9901ad66188298afad05c939872d57ba670dbd0..5ef33c5dbf48c4bfb014ac31fb6eb2895ed9f390 100644 (file)
@@ -23,7 +23,6 @@ library = {
   common = grub-core/kern/misc.c;
   common = grub-core/kern/emu/mm.c;
   common = grub-core/kern/emu/misc.c;
-  common = grub-core/kern/emu/hostfs.c;
   common = grub-core/kern/emu/getroot.c;
   common = grub-core/kern/emu/hostdisk.c;
 
@@ -31,7 +30,6 @@ library = {
   common = grub-core/commands/extcmd.c;
   common = grub-core/commands/ls.c;
   common = grub-core/disk/dmraid_nvidia.c;
-  common = grub-core/disk/host.c;
   common = grub-core/disk/loopback.c;
   common = grub-core/disk/lvm.c;
   common = grub-core/disk/mdraid_linux.c;
@@ -182,6 +180,8 @@ program = {
   name = grub-fstest;
   mansection = 1;
   common = util/grub-fstest.c;
+  common = grub-core/kern/emu/hostfs.c;
+  common = grub-core/disk/host.c;
 
   ldadd = libgrub.a;
   ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
index f0f134b3d6fc6793feae024ff4ff922f48ace213..fa84c63d1059e7fc619a2baaa147fcca40fcffa9 100644 (file)
@@ -304,9 +304,11 @@ for i in ${grub_mkconfig_dir}/* ; do
 done
 
 # Verify readability of ${grub_cfg}.new
-if is_path_readable_by_grub ${grub_cfg}.new ; then : ; else
-  echo "GRUB is unable to read ${grubdir}/${file}" >&2
-  exit 1   
+if test "x${grub_cfg}" != "x"; then
+  if is_path_readable_by_grub ${grub_cfg}.new ; then : ; else
+    echo "GRUB is unable to read ${grubdir}/${file}" >&2
+    exit 1   
+  fi
 fi
 
 if test "x${grub_cfg}" != "x" ; then