On Sun, 2010-07-04 at 15:41 +0100, Colin Watson wrote:
> debconf has no facility for adding extra buttons.
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.


> > Is that "- /dev/sda1" intended to be there?
> 
> 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?
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




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to