[2272] 2009-06-08 Vladimir Serbinenko <[email protected]>

Vladimir Serbinenko <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2272
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2272
Author:   phcoder
Date:     2009-06-08 13:04:02 +0000 (Mon, 08 Jun 2009)
Log Message:
-----------
2009-06-08  Vladimir Serbinenko  <[email protected]>

	Bugfix: install on partitionless device

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

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/util/hostdisk.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-06-08 12:45:04 UTC (rev 2271)
+++ trunk/grub2/ChangeLog	2009-06-08 13:04:02 UTC (rev 2272)
@@ -1,3 +1,10 @@
+2009-06-08  Vladimir Serbinenko  <[email protected]>
+
+	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  <[email protected]>
 
 	* Makefile.in (uninstall): Remove all $include_DATA files.

Modified: trunk/grub2/util/hostdisk.c
===================================================================
--- trunk/grub2/util/hostdisk.c	2009-06-08 12:45:04 UTC (rev 2271)
+++ trunk/grub2/util/hostdisk.c	2009-06-08 13:04:02 UTC (rev 2272)
@@ -883,6 +883,10 @@
 		  "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))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.