Comment 2 for bug 16737

Revision history for this message
Sven Luther (luther) wrote :

Well, i feel that the full canonical path (@f2000000 and co) is not (at all or
easily) available from the devfs representation of the devices. I don't know how
you handle that with non-devfs hoary and later installer, but it should be
possible to get the full canonical path from /sys or something such.

$ for i in `find /sys -name devspec`; do more $i; done

Gives the canonical device name of all pci devices :

/pci@C0000000/display@8,1
/pci@C0000000/display@8
/pci@C0000000/host@0
/pci@80000000/ethernet@D
/pci@80000000/pci1106,3068@C,6
/pci@80000000/sound@C,5
/pci@80000000/other@C,4
/pci@80000000/usb@C,3
/pci@80000000/usb@C,2
/pci@80000000/ide@C,1
/pci@80000000/isa@C
/pci@80000000/usb@6,2
/pci@80000000/usb@6,1
/pci@80000000/usb@6
/pci@80000000/scsi@5
/pci@80000000/firewire@1
/pci@80000000/host@0

But we need then to match those with the ones where our d-i path is on.

I believe that is you go into /sys/block/<device>/device, and do a :

/sys/block/hda/device$ more ../../devspec
/pci@80000000/ide@C,1

you find the full canonical path.

Naturally, we couldn't do this in debian, since debian was still supporting 2.4
kernels, but this should be no major problem in ubuntu.

Friendly,

Sven Luther