Commit Graph

21 Commits

Author SHA1 Message Date
Ryan Harper d85bb52a63 Finish enabling EFI boot mode
- Fix up issues with efi mode grub serial configuration
- Modify blockdev model to order storage configuration output
- Handle when we're running in uefi mode

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 22:19:54 -05:00
Ryan Harper 8a0e9ebdfd Add new cli option to read machine probe data from file
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>
2015-08-28 13:22:29 -05:00
Adam Stokes 01bd932bee Dont chunk the data line
Was causing some formatting issues with python's builtin splitlines

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 16:10:20 -04:00
Adam Stokes e5915a3559 update installed finish text
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 15:42:37 -04:00
Ryan Harper 65b9cb396a Add postinstall cleanup
Inject a postinstall config to curtin installer to cleanup cloud image
on target.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-23 14:57:42 -05:00
Ryan Harper 09fdf0033f Merge branch 'grub2' into merge_grub2
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-22 09:13:10 -05:00
Ryan Harper c139f9ccf3 Change curtin_wrap to reboot on success.
grub2 supports rebooting into the newly installed image so change
curtin_wrap to reboot upon successful install.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-21 19:06:05 -05:00
Adam Stokes f429372d3c refactor controller code and signal handling
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 11:55:02 -04:00
Ryan Harper dabdca2320 Detect successful install
Detect successful install by looking at output from
curtin logged to a file.  Also read for input from
user on successful install.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 14:00:50 -05:00
Ryan Harper 2b06bdc1da Call curtin to complete install
- Use updated probert *Info class for accessing object data
- Add --dry-run parameter to prevent invoking curtin when testing
- Add new make target to run ui-view by default with --dry-run
- Use a template to write out curtin config file for installation
- Use virtio disks and multiple nics to test probing.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 12:34:24 -05:00
Adam Stokes dc153cb54a add network view/controller
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 15:44:48 -04:00
Adam Stokes 66ff8fef18 add controller policy
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 14:28:47 -04:00
Adam Stokes 7ca2624fb1 more logging
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 13:09:26 -04:00
Adam Stokes d480c49415 add logging
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 13:02:01 -04:00
Adam Stokes c780386ceb more work on routing controllers
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 12:40:10 -04:00
Adam Stokes dcb0337fdc additional models
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-22 16:34:37 -04:00
Ryan Harper d3c0b55dbe Call curtin installer from subiquity
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>
2015-06-17 15:47:23 -05:00
Adam Stokes bbc0e317f5 Provide separate palette mapping for monochrome
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-16 19:14:41 -04:00
Adam Stokes ce18689b94 Split out controllers/views, add additional UI utilities
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-10 18:43:56 -04:00
Adam Stokes 8d1894641f add curses display for serial
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-10 17:31:04 -04:00
Adam Stokes 389fdf17cb Add initial start view, buttons, and utilities
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-10 16:59:55 -04:00