This very simply adds a mirror panel to subiquity.
Nothing intelligent at all. Just defaults to filling with
http://archive.ubuntu.com/ubuntu/ and lets user fill it in.
As implemented here, the mirror only replaces primary mirror,
security will still use http://security.ubuntu.com/ubuntu/
I fixed the 'c u r t i n b l o c k'... report event in the code a few
commits back, but when using dry-run it was still present because
dry run uses the events json rather than real curtin output.
This just updates the events json to be in line with reality as
it was confusing to see it in the dry run path.
Probert includes network info on bonds and bridges, include this
data as we now rely upon it in the network model.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
When fixing show-disk-info on virtio devices, a thinko when
indexing the info structure caused issues when looking at
a secondary clause in a compound statement. Fix this by
extracting the value via a .get and checking.
- Also include a probert dump of a virtio-based cloud image
for testing with virtio devices.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Introduce a new Raiddev class to hold raid virtual device.
Add RaidAction to emit correct storage config
Tested with raid level 0 only.
Not sure if we can allow partitioning of raid devices. Documentation
says it can be done but curtin will need to 'make it correctly'.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Allow user to specify a probert machine configuration file to be
used during the installer. If presented with the config file
no probing of the host will occur.
In the case that disks don't have a size in the data collected then
they'll be marked as USED.
Add a few example machines and update the README on how to specify.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>