Comment 6 for bug 717129

Revision history for this message
Guilherme Salgado (salgado) wrote :

The first issue reported here is really a race condition: we create the partitions using sfdisk but before udisks get notified about them we query udisks for information about them, which fails. This is related to bug 701678, but in that case we could easily change the code to no longer use udisks.

Here we might have to either use udisks for partitioning (if we do that we must do it only when formatting SD cards because we must not use udisks when building image files) or wait for udisks signals after the partitions are created and before we proceed. Although in the meantime we could just increase the sleep() in create_partitions().