OF device names and util/biosdisk.c
jordi@horta:~$ sudo grub-mkdevicemap --device-map=/dev/stdout (hd) /dev/hda
However, grub-probe totally doesn't like the lack of drive number:
jordi@horta:~$ sudo grub-probe /boot/grub grub-probe: error: /boot/grub/device.map:1: Bad device name
If I edit my device.map and add a drive number, say hd0:
jordi@horta:~$ sudo grub-probe /boot/grub hfs
util/biosdisk.c assumes:
if (drive < 0 || drive >= (int) (sizeof (map) / sizeof (map[0])))
show_error ("Bad device name");Can this be ifndef GRUB_MACHINE_PCBIOS'd?
Jordi
Signature · 3 lines
Jordi Mallach Pérez -- Debian developer http://www.debian.org/ [email protected] [email protected] http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/
Quoted 11 lines · Jordi Mallach
jordi@horta:~$ sudo grub-mkdevicemap --device-map=/dev/stdout (hd) /dev/hdaHowever, grub-probe totally doesn't like the lack of drive number:
jordi@horta:~$ sudo grub-probe /boot/grub grub-probe: error: /boot/grub/device.map:1: Bad device nameIf I edit my device.map and add a drive number, say hd0:
jordi@horta:~$ sudo grub-probe /boot/grub hfs
Yes, I've seen this problem.
Quoted 6 lines
util/biosdisk.cassumes:if (drive < 0 || drive >= (int) (sizeof (map) / sizeof (map[0]))) show_error ("Bad device name");Can this be ifndef GRUB_MACHINE_PCBIOS'd?
No. This would lead to using a wrong index in the map table. I think the code should be changed so that the map uses consecutive numbers for the entries in device.map and stores the actual names.
The BIOS numbers for the disks should not be needed in cross-platform utilities. If they are, the code should be fixed.
Signature · 2 lines
Regards, Pavel Roskin