The virtualenv was proving more complicated to use during the
image building process. Broke off our own shim until Debian/Ubuntu
get newer urwid packages.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
We've encountered some usb nics which don't have an entry
in the udev database, subsequently the ID_XXX_FROM_DATABASE
isn't present in the output. Address this by using some
fallback keys, ID_XXX, ID_XXX_ID and an Unknown value if
all fail.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
The model gets passed into the view, but it's only the class name
We need to create an object of the model class before we can use it.
Also implement new network get_iface_info to dump additional iface
info in the view.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Update subiquity welcome controller to call probert to extract
host information and present it to the user briefly before
invokin the curtin installer.
Add the install_src to git clone probert. Pack this as a tarball
in the user-data like subiquity.
Update user-data package installs for new probert deps.
Modify boot parameters to handle systemd persistent nic naming;
we may not always have eth0 as a nic. Subsequently update
user-data to use bootcmd to automatically attempt to bring up
nics during the boot before the installer.
Finally fix commandline parsing/output in geninstaller.
Implement version parameter and better caching of previous
maas ephemeral images.
Fix issue with removing cache after unpacking rootfs which is
now owned by root (add sudo to rm of cache).
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
In some cases an empty line is drawn when we use Text("")
for padding lines. Don't associate those padders with a
color attribute.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Controls whether we launch subiquity over serial or on the tty.
Add installer resource files as dependencies to force image
regen when modified.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Hacky method, but in welcome controller, use subprocess to
call a script which invokes curtin at a known location with
a specific set of parameters.
Modify the installer configuration and start-up scripts to
ensure Subiquity runs on tty1 and keeps the service running.
Upon hitting 'Confirm' Subiquity will exec curtin_wrap.sh
which calls the *real* curtin. Cloud-init user-data has been
modified to unpack the curtin archive embedded.
When complete, the target.img file is bootable.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Controls whether we launch subiquity over serial or on the tty.
Add installer resource files as dependencies to force image
regen when modified.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>