]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
second attempt to fix using grub device name as install device
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 14:58:19 +0000 (18:58 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 14:58:19 +0000 (18:58 +0400)
grub-install already resolved passed install device to grub device. So do the
same as grub-setup and strip parenthesis if we get legacy (hdX).

I accidentally commited revert of 69ca97c820a623f85baf2db1627e19bef9c24e44 and
this patch as part of f585c905054b8c74e6e0a67341e84accfb816912. So this commit
just adds ChangeLog entry and cosmetic whitespace fix.

ChangeLog
util/grub-install.c

index 8d650572ae6c3a4145aaae1566179fde8545e90e..d7b9822949362b14aa31ae45fa94dab021e5a9e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       Revert commit 69ca97c820, it caused failures when using OS device name
+       in grub-install. Instead just strip off parenthesis in grub-install
+       if (hdX) was passed.
+
 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * util/grub-install.c (push_partmap_module): Add helper to convert
index 4cc557eead90dabcb1c840ad5eb118ccec51860f..7596ad91e1246cf24a1b553ffee990e2a315a89c 100644 (file)
@@ -1104,7 +1104,6 @@ main (int argc, char *argv[])
       if (install_device[0] == '('
          && install_device[grub_strlen (install_device) - 1] == ')')
         {
-         
          size_t len = grub_strlen (install_device) - 2;
          install_drive = xmalloc (len + 1);
          memcpy (install_drive, install_device + 1, len);