Commit Graph

1863 Commits

Author SHA1 Message Date
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
Diogo Matsubara f8e6622fb4 Merge branch 'master' into trivial-fixes 2015-07-23 16:34:47 -03:00
Diogo Matsubara 714a2d6d4f trivial fixes: devel dependencies, use git@github url instead of http to avoid password. 2015-07-23 13:23:00 -03:00
Adam Stokes 161764d030 Merge pull request #18 from CanonicalLtd/implement_disk_reset
Implement Filesystem Model Reset
2015-07-23 11:23:38 -04:00
Ryan Harper 9fb9d6cb94 Implement Filesystem Model Reset
- Reset button will clear out any changes made to the filesystem model.
- Fixed Reset button label and callback.
- Reverted change to DiskPartitionView which called filesystem:finish instead
  of returning back to FilesystemView.
- Fixed a few lint errors.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-23 10:06:28 -05:00
raharper be2d861bbc Merge pull request #17 from CanonicalLtd/offline
Offline installer image build support
2015-07-23 09:25:29 -05:00
Wesley Wiedenmeier 00c4cc7a67 Integrated offline mode with Makefile 2015-07-23 09:19:38 -05:00
Adam Stokes 9729b2edfd set done button in disk view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-23 10:13:19 -04:00
Adam Stokes 5fa744cc93 Support swap definition
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-23 08:32:55 -04:00
Adam Stokes 3e0270e100 Inherit from ViewPolicy on all toplevel panels
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 22:31:21 -04:00
Adam Stokes 8663d8b45e Add view policy
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 22:30:57 -04:00
Adam Stokes f8db0c4833 Process get_actions() from filesystem finish emitter
This writes out the filesystem format to /tmp/subiquity-config.yaml
and exists the installer cleanly.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 21:57:49 -04:00
Adam Stokes 6f61de5bd4 Fixes #16
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 21:46:04 -04:00
Adam Stokes c4408f4500 small formatting fix
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-22 21:44:35 -04:00
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