]> git.proxmox.com Git - grub2.git/commitdiff
2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Mon, 8 Jun 2009 13:04:02 +0000 (13:04 +0000)
committerphcoder <phcoder@localhost>
Mon, 8 Jun 2009 13:04:02 +0000 (13:04 +0000)
Bugfix: install on partitionless device

* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
is a whole disk

ChangeLog
util/hostdisk.c

index ddc8389983dbb6cb0f3468a16dd174452937e028..2d90923e852596413c4b74e934930b34f6baba5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Bugfix: install on partitionless device
+
+       * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
+       is a whole disk
+
 2009-06-08  Felix Zielcke  <fzielcke@z-51.de>
 
        * Makefile.in (uninstall): Remove all $include_DATA files.
index eaccb73dc6cd66de53408d1445f526e19bf95590..a7262dd8f74bcd1e236be735583fb957638a54ee 100644 (file)
@@ -883,6 +883,10 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
                  "no mapping exists for `%s'", os_dev);
       return 0;
     }
+
+  if (grub_strcmp (os_dev, convert_system_partition_to_system_disk (os_dev)) 
+      == 0)
+    return make_device_name (drive, -1, -1);
   
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
   if (! S_ISCHR (st.st_mode))