Comment 3 for bug 1393953

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, I figured this out finally. I did add the get_xinstall_parameters method to custom.py, that correctly sends the dd image and curtin installs it in the node.

Then curtin tries to run hooks (curtin curthooks), it looks for a /curtin directory in the installed system, since my custom image lacks this, curtin then proceeds with what I assume are some ubuntu-default hooks, looking for (and failing to find, as my image lacks) an /etc directory.

I solved this by adding /curtin directory to my image, containing hooks, essentially an empty curtin-hooks and empty finalize files (as I want curtin to mostly leave the image alone; it boots fine once the system restarts).

So other than an image with proper curtin/ directory, all I needed was get_xinstall_parameters. A definitive solution would properly recognize the type of image, since this hack just defaults to dd-tgz.