#803346 grub-pc: fails to install on mutliple devices

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Christoph Anton Mitterer
Date:
2015-10-29 10:57:06 UTC
Severity:
important
#803346#5
Date:
2015-10-28 23:21:17 UTC
From:
To:
Hey.

On my system I have two HDDs, which basically run as a btrfs RAID1
from their respective 2nd partitions (partition table = GPT).
The first partition is the BIOS boot partition.

Now when I install grub manually to those devices, e.g. as with:
grub-install --no-floppy --recheck /dev/sda|b
everything works fine.

But when I select both of these devices in the debconf question, than
installation fails:
# dpkg-reconfigure grub-pc
device node not found
device node not found
device node not found
device node not found
Use of uninitialized value in string eq at
/usr/share/perl5/Debconf/Element/Multiselect.pm line 38, <GEN17> line
22.
Use of uninitialized value in string eq at
/usr/share/perl5/Debconf/Element/Multiselect.pm line 38, <GEN17> line
22.
Installing for i386-pc platform.
Installation finished. No error reported.
Installing for i386-pc platform.
grub-install: error: cannot find a GRUB drive for /dev/disk/by-id/ata-
TOSHIBA_DT01ACA100_Z41YEHMFS,.  Check your device.map.
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.2.0-1-amd64
Found initrd image: /boot/initrd.img-4.2.0-1-amd64
Found memtest86+ image: /root/boot/memtest86+.bin
Found memtest86+ multiboot image: /root/boot/memtest86+_multiboot.bin
done


Apparently it tries twice, after the first failure, it gives me another
debconf prompt with failure message and whther to try again.


Strangely enough, when I dpkg-reconfigure the package again, it doesn't
offer me the question about the devices anymore and doesn't reinstall
grub.


Any ideas?

Chris.

#803346#10
Date:
2015-10-29 10:55:25 UTC
From:
To:
btw, that's what debconf would offer as devices:
[*] /dev/sda (1000204 MB; TOSHIBA_DT01ACA100)
[*] /dev/sdb (1000204 MB; TOSHIBA_DT01ACA100)
[ ] (??? MB; ???)

So maybe that "(??? MB; ???)" is a problem?

Also, when I select just sda, installation works.
But when I select just sdb, I get the error:
│ GRUB failed to install to the following devices:                                     │
│                                                                                      │
│ /dev/disk/by-id/ata-TOSHIBA_DT01ACA100_Z41YEHMFS,                                    │
│                                                                                      │
│ Do you want to continue anyway? If you do, your computer may not start up properly.  │
│                                                                                      │
│ Writing GRUB to boot device failed - continue?                                       │


But in either case, there's:
Use of uninitialized value in string eq at /usr/share/perl5/Debconf/Element/Multiselect.pm line 38, <GEN17> line 22.


Cheers,
Chris.

#803346#15
Date:
2015-10-29 10:55:25 UTC
From:
To:
btw, that's what debconf would offer as devices:
[*] /dev/sda (1000204 MB; TOSHIBA_DT01ACA100)
[*] /dev/sdb (1000204 MB; TOSHIBA_DT01ACA100)
[ ] (??? MB; ???)

So maybe that "(??? MB; ???)" is a problem?

Also, when I select just sda, installation works.
But when I select just sdb, I get the error:
│ GRUB failed to install to the following devices:                                     │
│                                                                                      │
│ /dev/disk/by-id/ata-TOSHIBA_DT01ACA100_Z41YEHMFS,                                    │
│                                                                                      │
│ Do you want to continue anyway? If you do, your computer may not start up properly.  │
│                                                                                      │
│ Writing GRUB to boot device failed - continue?                                       │


But in either case, there's:
Use of uninitialized value in string eq at /usr/share/perl5/Debconf/Element/Multiselect.pm line 38, <GEN17> line 22.


Cheers,
Chris.