Follow-up Comment #4, bug #27737 (project grub):

I found a workaround. It seems that the problem is the extra subdirectory in
/dev/mapper.

If I recreate the block devices that are under /dev/mapper and place them
directly under /dev (with a different name), and update the device.map file
for grub2, then I can install grub onto the disk using grub-install

Step 1: lookup the major/minor created under /dev/mapper
Step 2: mknod the same devices directory under /dev

I created two devices /dev/mapper/sda and /dev/mapper/sda1 using dmsetup and
kpartx. /dev/mapper/sda received major device number 252 and minor 0, and
/dev/mapper/sda1 received minor 1.

Then I did:

mknod /dev/msda b 252 0
mknod /dev/msda1 b 252 1

Make sure that you mount /dev/msda1 instead of /dev/mapper/sda1, update your
device.map with "(hd0) /dev/msda" and voila, grub-install works.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27737>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to