And a custom Welcome screen to boot; to show the overriding of settings.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
- Don't include Disk entries in storage config unless they've been modified
- Make sure underlying devices don't include partition table unless needed
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
- When user did not specify ssh/github id, this broke our postinstall template
Fix by only appending ssh-import-id if user specifies a value.
- Move hostname config into a separate part of the postinstall cloud-init
userdata so cloud-init actually applies the hostname specified
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
When curtin encountered an error, if the resulting message
was very large, this would prevent the progress screen from
displaying useful information and left the user believing the
install was still going on even when it had stopped.
Resolve this by applying some post processing on the curtin
error message to help user better spot the issue. We also
update the Title, Header and Footer to indicate an error has
occurred.
Finally, left-align the progress output.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
The latest curtin now does package dep checks during installation
which may install and enable things like lvm2 and mdadm. These
packages trigger running daemons which prevent the unmounting of
filesystem when building the installer image. Resolve this by
re-implementing curtin's [un]disable_daemon_in_root functions.
Update runinstaller to use 3 spare disks as virtio to enable
raid testing.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
The holders and tags were kept on the Disk object, however when
using partitions, this wasn't available since partitions are
represented by an action object. Avoid this by hanging the
holders and tags off of the filesystem model directly, indexing
by device.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Enable Create Logical Volume (LVM2) option in filesystem view.
Implement backend for building and emitting LVM storage config.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
- Model inputs after Ubiquity layout
- Add Servername (hostname)
- Add SSH ID import (import from launchpad or github)
- Include information under important fields
- Drop old/unused hostname MVC files
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
- Skip add_partition entry for bcache, raid, and lvm devices
- Don't display Format entire partition if it's already been formated
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
The new fixed_X attribute will center and set a fixed size on the
widget wrapped. This keeps the widget the same size no matter the
scale of the window.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
We needed to add in a dummy stdin fd for the async run_command
Fix up the postinstall command
Add a check on tailing the install log file
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Return to spawning curtin in two stages, and include additional
signals and flags to control when we spawn the postinstall
config operation.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Ensure they all use backing_dev, cache_dev parameter ordering
Added properties to BcacheAction for involved devices
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
We initialized params and subnets to empty lists.
Params is expected to be a dictionary while subnets
is a list.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>