#588058 "poll" for missing install devices

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Christoph Anton Mitterer
Date:
2010-07-04 14:48:03 UTC
Severity:
wishlist
#588058#5
Date:
2010-07-04 14:14:57 UTC
From:
To:
Hi Colin.


Remember my email from yesterday,... where I've described that I use an
USB stick to boot?

Just tried out your new system of using stable device names...

It shows my USB stick as device in debconf:
   [*] /dev/disk/by-id/usb-JetFlash_TS4GJFV90_DUGKUT86-0:0 (4102 MB,
TS4GJFV90)
   [ ] - /dev/sdb1 (1000 MB, /boot)
which is nice, but when I remove it, an re-run dpkg-reconfigure,... it
just complains that the previous configured device is gone and I have to
select another one or so.

Would it be possible, to offer (in such a case) a retry button or so?

Cheers,
Chris.


btw: Debconf gives me e.g. the following:
[ ] /dev/disk/by-id/ata-HDT722525DLA380_VDB41BT4CA1GYC (250059 MB, HDT722525DLA380)
[ ] - /dev/sda1 (100002 MB, /) [ ] /dev/disk/by-id/ata-HDT722525DLA380_VDK41BT4CEAXME (250059 MB, HDT722525DLA380)
[ ] /dev/disk/by-id/ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B (250059 MB, Hitachi_HDT725025VLAT80)
[ ] /dev/disk/by-id/ata-ST3750640AS_5QD03J2N (750156 MB, ST3750640AS)

Is that "- /dev/sda1" intended to be there?

#588058#10
Date:
2010-07-04 14:41:02 UTC
From:
To:
debconf has no facility for adding extra buttons.

Yes - in fact none of the others are supposed to be shown as
/dev/disk/by-id/ paths!  It's supposed to resolve them all with
'readlink -f' before display, on the basis that even though by-id is
better for storage most people will be more familiar with traditional
device names.

What does 'ls -l /dev/disk/by-id/' print?

#588058#15
Date:
2010-07-04 14:45:22 UTC
From:
To:
What about:
1) scan for the device
2) if it's not there print a notice, about that, and whether the user
want's to retry, with the buttons yes and no.
0 lrwxrwxrwx 1 root root  9 Jul  4 16:04 ata-HDT722525DLA380_VDB41BT4CA1GYC -> ../../sda
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-HDT722525DLA380_VDB41BT4CA1GYC-part1 -> ../../sda1
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-HDT722525DLA380_VDB41BT4CA1GYC-part2 -> ../../sda2
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-HDT722525DLA380_VDB41BT4CA1GYC-part3 -> ../../sda3
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 ata-HDT722525DLA380_VDK41BT4CEAXME -> ../../sdb
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-HDT722525DLA380_VDK41BT4CEAXME-part1 -> ../../sdb1
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B -> ../../hda
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B-part1 -> ../../hda1
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B-part2 -> ../../hda2
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B-part3 -> ../../hda3
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-Hitachi_HDT725025VLAT80_VF1100R1CJ583B-part4 -> ../../hda4
0 lrwxrwxrwx 1 root root  9 Jul  4 16:19 ata-PLEXTOR_DVDR_PX-760A_388602 -> ../../hdb
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 ata-ST3750640AS_5QD03J2N -> ../../sdc
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 ata-ST3750640AS_5QD03J2N-part1 -> ../../sdc1
0 lrwxrwxrwx 1 root root  9 Jul  4 16:04 scsi-SATA_HDT722525DLA380_VDB41BT4CA1GYC -> ../../sda
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 scsi-SATA_HDT722525DLA380_VDB41BT4CA1GYC-part1 -> ../../sda1
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 scsi-SATA_HDT722525DLA380_VDB41BT4CA1GYC-part2 -> ../../sda2
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 scsi-SATA_HDT722525DLA380_VDB41BT4CA1GYC-part3 -> ../../sda3
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 scsi-SATA_HDT722525DLA380_VDK41BT4CEAXME -> ../../sdb
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 scsi-SATA_HDT722525DLA380_VDK41BT4CEAXME-part1 -> ../../sdb1
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 scsi-SATA_ST3750640AS_5QD03J2N -> ../../sdc
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 scsi-SATA_ST3750640AS_5QD03J2N-part1 -> ../../sdc1
0 lrwxrwxrwx 1 root root  9 Jul  4 16:04 wwn-0x5000cca20bc49146 -> ../../sda
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 wwn-0x5000cca20bc49146-part1 -> ../../sda1
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 wwn-0x5000cca20bc49146-part2 -> ../../sda2
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 wwn-0x5000cca20bc49146-part3 -> ../../sda3
0 lrwxrwxrwx 1 root root  9 Jul  4 14:09 wwn-0x5000cca20bc611d4 -> ../../sdb
0 lrwxrwxrwx 1 root root 10 Jul  4 14:09 wwn-0x5000cca20bc611d4-part1 -> ../../sdb1