Comment 5 for bug 1413687

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Canonical,

It seems the problem here is the delay some disks in the IPR controller encounter to show up.

From dmesg there's 2 IPR controllers, and the kernel module initializes the controllers sequentially, so the disks from the 2nd controller take even more time to show up.

I'm not sure 'udevadm settle' would wait for a SCSI scan to finish, but maybe only for the processing of the udev events of the disks/partitions being added?

From some testing, it seems that 'modprobe ipr; udevadm settle' ends after all disks show up, but that seems to be mostly because modprobe takes a long time to finish (thus udevadm settle would be more of a guarantee).

Is it possible to implement something like that (ensure all disks finished detection) in the hw-detect stage, before finishing and allowing partman to start -- so the partman/early-command executes only when all disks are detected/SCSI scans finished?