Commit Graph

37 Commits

Author SHA1 Message Date
Mathieu Trudel-Lapierre 69b12f54f9 Configure LOGDIR/LOGFILE for dryrun for the subiquity wrapper 2016-08-09 15:20:15 -04:00
Michael Hudson-Doyle 070a96bcc4 Write stamp file and logs to somewhere more sensible. 2016-08-05 14:41:50 +12:00
Mathieu Trudel-Lapierre e4e9edacfd Really drop curtin requirement. 2016-07-28 22:41:49 -04:00
Michael Hudson-Doyle e4d5c7fa85 stuff 2016-07-28 11:13:19 +12:00
Michael Hudson-Doyle 2c749d944c Have console-conf and subiquity check differing environments.
This means that console-conf no longer needs to have hdparm installed.

I'm not sure console-conf needs to call this at all TBH.
2016-07-26 15:09:44 +12:00
Michael Hudson-Doyle e95daf25ba Re-introduce 'subiquity' package for installer specific things.
Only move the Application object for now.
2016-07-25 12:51:39 +12:00
Michael Hudson-Doyle 173fdcb77f rename subiquitycore.core.Controller to Application
Also CoreControllerError -> ApplicationError
2016-07-25 12:38:19 +12:00
Mathieu Trudel-Lapierre be0457f9ea Don't filter logs at all.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:51:46 -04:00
Mathieu Trudel-Lapierre 848ccabc7d console_conf: start initial console-conf tree with a custom controller story
And a custom Welcome screen to boot; to show the overriding of settings.

Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:18:54 -04:00
Mathieu Trudel-Lapierre e1970b6477 Rename subiquity to subiquitycore -- will serve as base classes for everything
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:17:01 -04:00
Mathieu Trudel-Lapierre a721eba5c1 Add an 'install' mode; firstboot will be the default to avoid trashing installs
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-28 11:30:40 -04:00
Adam Stokes 390bbdae02 Dont fail on curtin check if in dryrun
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-10-26 10:19:48 -04:00
Ryan Harper 8a441b8301 Introduce safer loading of machine configs
- Switch to yaml.safe_load() which throws errors when fed /dev/zero.
- Add a new ProberExecption and bubble that up to the main program
- Update unit tests to mock out repeated calls to safe_load which slowed
  down the unittest run.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-10-23 10:03:04 -05:00
Ryan Harper f43bca96a3 Add environment check on startup
Use an environment check function to test if the env is
configured for running subiquity.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-10-22 14:39:25 -05:00
Ryan Harper aba2963779 Add control-c signal handler
Control-c dumps python stack trace.  Instead, just exit cleanly by
hooking SIGINT.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-10-21 10:18:34 -05:00
Adam Stokes b16374fa8e Rename to subiquity-tui for package install
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-28 11:20:22 -04:00
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