Commit Graph

6349 Commits

Author SHA1 Message Date
Adam Stokes 1dfeb7a728 add logic to disk view partition for button display
Depending on if partitions already exist or not will determine
if the add partition label shows the first gpt partition or just
a plain "add partition" label. For create swap it is disabled
and the color dimmed if partitions already exist.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 21:39:38 -04:00
Wesley Wiedenmeier 029ce835f8 Merge branch 'master' of github.com:CanonicalLtd/subiquity into offline 2015-07-22 16:02:59 -05:00
Wesley Wiedenmeier 20a2870d32 Finished offline mode setup
- Removed package list from installer-user-data, and added a placemarker
   instead
 - geninstaller inserts the package list INSTALLER_DEPS into
   installer-user-data if OFFLINE is set to no, if OFFLINE is set to yes,
   geninstaller chroots into rootfs and does apt-get install for everything in
   INSTALLER_DEPS
2015-07-22 15:59:23 -05:00
Adam Stokes 90fb62f6f7 refresh disk partition view after adding partition
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 16:18:18 -04:00
Adam Stokes 660205a184 support grabbing values from inputs
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 14:57:53 -04:00
Wesley Wiedenmeier a93b4bbda5 Merge branch 'master' of github.com:CanonicalLtd/subiquity into offline 2015-07-22 13:30:12 -05:00
Wesley Wiedenmeier 411656ed99 Started adding support for offline installer image
- If geninstaller is run with -o or --offline, then during generate_img,
    chroot into target and run apt-get install with all required packges for
    subiquity.
  - At the moment, cloud-init will still attempt to install packages when it
    boots without network, then fail over to the next part of the init, and
    eventually will run subiquity.
  - While this is functional for an offline installer, it is preferrable to
    tell cloud-init not to try to install packages, to avoid extra delays
    and to keep errors out of the cloud-init log
2015-07-22 13:24:40 -05:00
Adam Stokes 709d603424 fix string formatting
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 14:17:46 -04:00
Adam Stokes 0f305d19c0 add a dehumanize to convert size to bytes
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 14:13:54 -04:00
Adam Stokes e6356d7c37 more display formatting
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 11:18:58 -04:00
Adam Stokes d20811fd9a decrease padding in inner container for add partition
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 11:18:58 -04:00
raharper c707ac5eee Merge pull request #15 from CanonicalLtd/merge_grub2
Merge grub2 and blockdev/action fixes to work with updated curtin.
2015-07-22 10:04:36 -05:00
Ryan Harper cf7568aba0 Fix spelling of Partition
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-22 09:19:13 -05:00
Ryan Harper 199675c262 Merge branch 'fixes_for_blockdev_model' into merge_grub2
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-22 09:15:38 -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
Adam Stokes 4a8df3b5f7 Draw linebox around add partition editor
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 09:53:59 -04:00
Adam Stokes 60504989d1 Update footer in partition editor
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 09:38:55 -04:00
Adam Stokes 360604e418 Make format: column slimmer
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 22:53:36 -04:00
Adam Stokes 60ec642290 Add initial add disk partition view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 22:51:06 -04:00
Adam Stokes 02cab5a223 Refactoring of several parts of subiquity
Models/
  Inherit a model policy that outlines the minimum requirements.
  Things like exposed signals, menuing structure, and previous
  controller are expected to be there.

Controllers/
  Moved controller logic in a core controller which eases
  the signal emitter to view mappings.

Signals/
  Navigation and views are handled by a global Signal
  class which manages all emitted signals and their
  connection callbacks.

  This also removes the need for having to define
  callbacks in all of the view classes.

UI/
  Made a dummy view availble for those that have
  yet to be implemented.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 21:50:36 -04:00
Adam Stokes c5c1b84d7d more signal fixes
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 21:49:37 -04:00
Adam Stokes f8e09faa4f add dummy ui, model policy
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-21 21:34:46 -04:00
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