Commit Graph

4827 Commits

Author SHA1 Message Date
Ryan Harper 0b27af4828 Fix actions and blockdev model to work with latest curtin
Update action outputs to match curtin requirements.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-21 20:15:22 -05:00
Ryan Harper 27a2f45216 Add grub2 and bootloader paramater to installer target
Default to grub2 for bootloader.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-21 19:06:58 -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
Ryan Harper c121044808 Use mkdir -p for repeated runs and avoiding warnings.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-21 19:05:33 -05:00
Adam Stokes fc3fccea02 connect filesystem menu actions to respective signals
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 17:04:28 -04:00
Adam Stokes 0be2b491f0 extending signal support
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 16:34:46 -04: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
Wesley Wiedenmeier bd2f6014e5 Cleaned up boot appearance
- Use 'quiet splash' for graphical, but display boot output when booting over
   serial
2015-07-20 10:27:20 -05:00
Wesley Wiedenmeier 117042f2b4 Fixed grub2 config to work without a vga card
- Try to set up both gfxterm and serial term, but if either fails,
   continue with the other.
2015-07-20 09:59:42 -05:00
Wesley Wiedenmeier a347eea9eb De-interlaced splash.png
- Grub2 does not support interlaced png
2015-07-18 21:25:43 -05:00
Wesley Wiedenmeier 7b374a1af7 Merge branch 'master' of github.com:CanonicalLtd/subiquity into grub2 2015-07-18 20:51:38 -05:00
Wesley Wiedenmeier 31af65f9cb Added support for serial consoles in grub2 menu 2015-07-18 20:47:36 -05:00
Adam Stokes c156c741cb Add copyright header to subiquity/curtin.py
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-16 20:12:51 -04:00
Adam Stokes ca9ac981f0 Update readme for executing dryrun
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-16 20:12:39 -04:00
Adam Stokes f2cc6edb12 Add partition controller/views
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-16 20:06:13 -04:00
Adam Stokes aa8623bebc extend the signal support, add disk paritition view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-16 17:58:32 -04:00
Adam Stokes 095f2f84da Add start of DiskPartition model and controller
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 13:45:48 -04:00
Adam Stokes 3c15e7aba0 Initial code for supporting connect signals for disk partition
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 11:05:53 -04:00
Adam Stokes 18156fdde3 Use prev_controller api call for ESC navigation
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 11:05:30 -04:00
Adam Stokes 4539a22bbc Sort list of available disks
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 10:17:53 -04:00
Adam Stokes 3689b2cba3 Use current_idx api call
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 10:14:49 -04:00
Adam Stokes 6b718b0fbf Make ESC navigate previous controllers
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 09:44:43 -04:00
Adam Stokes 5269e9696a Update probert code
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-13 09:32:13 -04:00
Adam Stokes b3b2135a82 Merge pull request #13 from CanonicalLtd/partitioning
Implement parted device model for handling partition building
2015-07-12 13:34:15 -04:00
Adam Stokes 277f819b4d Merge pull request #12 from CanonicalLtd/integrate_curtin_v2
Integrate curtin v2
2015-07-12 13:33:02 -04:00
Ryan Harper cfffcf34e4 Implement parted device model for handling partition building
Partial implementation using parted to model new partitions.
Add a method to track sequential actions taken against block
device and can write out a storage config file for curtin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-10 15:58:25 -05:00
Wesley Wiedenmeier 5861890397 Added options to boot using serial or graphical tty 2015-07-09 15:43:34 -05:00
Wesley Wiedenmeier fbfebeb8ed Added loading part_msdos and part_gpt modules 2015-07-09 10:26:28 -05:00
Wesley Wiedenmeier a520cd897d Added default and timeout 2015-07-08 16:41:09 -05:00
Wesley Wiedenmeier d786eb2e86 Fixed font issue by manually loading unicode.pf2 2015-07-08 15:09:31 -05:00
Wesley Wiedenmeier 2cfe2ffe71 Added support for more advanced booting with grub2
- installer/geninstaller: when -b grub2 flag is given, installs grub2 using
   grub-install, copies installer/resources/grub/grub.cfg onto target
 - installer/resources/grub/grub.cfg: grub configuration that in addition to
   having a menuentry for the installer, scans all partitions on the system
   other than the one it is running from for linux installations and creates
   menuentries for the other installations as well, to deal with potential
   situations where the user reboots the system after installing but does not
   remove the installation disk
2015-07-08 14:21:42 -05:00
Ryan Harper 47540e6bf2 Switch storage module logging to debug and json format
The logging data generated during storage probing is
hard to read, so instead, dump the data out via json.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 15:52:48 -05:00
Ryan Harper e93ece6ea6 Fix wrong PYTHONPATH
Screwed up the merge and broke import path to probert.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 14:34:26 -05:00
Ryan Harper 269af56576 Updated bootsplash
Less flashy for now.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 14:01:48 -05: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 cd52672fd7 Hide floppy error output
Not clear how else to resolve this, possibly patch to upstream kernel
but unlikely. so let's disable the floppy disk in our VM.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-06 13:55:42 -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 02d1ba864b Reduce column width for available disk selection
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-02 20:53:18 -04:00
Adam Stokes e49d2362c1 Remove excerpt from filesystem view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-02 20:52:19 -04:00
Adam Stokes 22327f2849 Make title, excerpt optional for header widget
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-02 20:52:05 -04:00
Adam Stokes d1ec1bd933 Add ability to query current route controller
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-02 20:50:54 -04:00
Adam Stokes 70dead7abb Update probert
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-02 16:29:14 -04:00
Adam Stokes 8db1a34501 Simple json/yaml export of Model instances.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-01 17:45:17 -04:00
Adam Stokes 4588a52ebf add 'tab' and 'shift tab' for down/up movement
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-01 17:23:11 -04:00
Adam Stokes c6572f4663 Update filesystem view pane
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-01 17:20:17 -04:00
Adam Stokes a986e80595 Fix high cpu usage with asyncioeventloop
Apparently asyncioeventloop needs more than a shim to work properly
in urwid <= 1.2.1. Remove the shim and revisit once urwid 1.3.0 is
packaged in Debian/Ubuntu

Fixes #11

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-01 17:05:27 -04:00
Adam Stokes b649c5b0fb Raise exception in loop_shim
Fixes #10

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-30 18:10:51 -04:00
Adam Stokes d331b60e40 fix apostrophe, blame google docs.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-30 18:05:41 -04:00
Adam Stokes 6dba22abc5 fix redrawing of screen in serial mode
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-30 17:53:12 -04:00
Adam Stokes 065863d451 Add AsyncioEventLoop shim for urwid versions shipped with Ubuntu
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>
2015-06-30 16:08:42 -04:00