Comment 6 for bug 1514094

Revision history for this message
Blake Rouse (blake-rouse) wrote :

I think the issue here is that curtin uses the id field as an identifier for the created object without actually checking the created objects name. The "id" in the preseed should just reference to that operation and not to the actual object. Just because the "id" is "bcache1" doesn't mean that the created bcache path might be "bcache0" in that regard the "id" could just be "mydisk".

Curtin should keep an internal map of "id" to created device on the machine.

1. Perform "make-bcache".
2. Find created bcache name. (ex. /dev/bcache0)
3. Update internal map with [id] = "/dev/bcache0"

Now other operations can reference "id" and curtin will use "/dev/bcache0". Now it looks like curtin assumes "/dev/{id}" which is very wrong.