commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2272] 2009-06-08 Vladimir Serbinenko <address@hidden>


From: Vladimir Serbinenko
Subject: [2272] 2009-06-08 Vladimir Serbinenko <address@hidden>
Date: Mon, 08 Jun 2009 13:04:02 +0000

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  <address@hidden>

        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  <address@hidden>
+
+       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  <address@hidden>
 
        * 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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]