Bug#526615: fails to install to RAID across virtual (kvm/virtio) disks

martin f krafft madduck at debian.org
Tue Aug 4 18:18:09 UTC 2009


also sprach Felix Zielcke <fzielcke at z-51.de> [2009.08.04.1456 +0200]:
> The problem is that we currently create the filename of the device by
> using the major and minor
> Like this:
> 
> if (major == SCSI_DISK0_MAJOR)
>     sprintf (name, "/dev/sd%c", 'a' + minor / 16);
> 
> This just doestn't work if the major is for local use according to the
> kernel docs.
> We could make 254 map to /dev/vda but maybe it's wrong then for someone
> else.
> Unfortunately I don't know why we have 2 different methods of dealing
> with RAID disks.
> The ioctl method in grub-setup and the method to just read the md
> superblock on all disks and add them to a list in grub-probe.

Thanks for the explanation. This is indeed a bit ugly. ;)

-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"first get your facts; then you can distort them at your leisure."
                                                       -- mark twain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090804/9058a5f0/attachment.pgp>


More information about the Pkg-grub-devel mailing list