Commit Graph

2436 Commits

Author SHA1 Message Date
Adam Stokes dbf83a4edb Fix dryrun banner conditional output
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-18 09:24:03 -04:00
Adam Stokes c9f8b954cb Merge pull request #25 from CanonicalLtd/integrate_storage_v1
Updated partitioning template to match new config:
2015-08-17 09:22:47 -04:00
Wesley Wiedenmeier f8e67e95bd Updated partitioning template to match new config:
- storage config is now a dict, with "version: 1" and "config: <storage
   config>"
 - switched curtin branch to use to lp:curtin, because custom storage features
   are now available there
2015-08-12 12:15:31 -05:00
Adam Stokes 346ff1eecc Add futures/promises thread executors
Facility for non blocking async calls that provide a clean
way of handling exceptions/errors in threads without us
having to define a bunch of global exception handlers.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-10 09:57:43 -04:00
Adam Stokes ecc9db2ea5 Condense signal loader with model classes
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-10 09:52:50 -04:00
Adam Stokes 10a1c76d8f Revert organization
The previous organization was in place to reduce the number of open
files when working on getting the demo into shape. Since we've completed
the demo revert back to our MVC model incorporating the latest changes
that were made during that time leading up to the demo.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-10 09:42:19 -04: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
Adam Stokes 19c54709b2 a little better formatting of curtin output
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 15:28:52 -04:00
Adam Stokes 2a6d70ee4a expand box adapters height
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 11:53:32 -04:00
Adam Stokes 8e09338d59 Change orange/light_orange to more safe colors
Remove unused colors in palette

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 11:53:12 -04:00
Adam Stokes 8341f0fee4 lighten info_minor color palette
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 11:30:03 -04:00
Adam Stokes 12f7bea668 add install progress view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-07-24 11:30:03 -04:00
Wesley Wiedenmeier feabaf8f18 Merge pull request #24 from CanonicalLtd/offline
Offline
2015-07-24 10:29:41 -05:00
Wesley Wiedenmeier 64ec2ae157 Merge branch 'master' of github.com:CanonicalLtd/subiquity into offline 2015-07-24 10:27:58 -05:00
Wesley Wiedenmeier c6ae4b1619 Fixed offline mode
- added apt-get update before installing packages
 - install all packages at once instead of looping over them
 - check for error from apt-get install
 - don't try to chroot if copying resolv.conf fails
2015-07-24 10:26:35 -05:00
Adam Stokes 0a9ba876bb Merge pull request #22 from CanonicalLtd/trivial-fixes
Some trivial fixes to help with initial development
2015-07-24 09:12:55 -04:00
Diogo Matsubara 387789d33e add python3-coverage as devel dependency 2015-07-24 10:03:37 -03:00
Adam Stokes a114d2cc60 Merge pull request #21 from CanonicalLtd/fix_swap_actions
Fix swap support
2015-07-23 16:32:02 -04:00
Adam Stokes 7cafe6c07f Merge pull request #20 from CanonicalLtd/add_gpt
Add gpt
2015-07-23 16:31:45 -04:00
Adam Stokes 598e085867 Merge pull request #19 from CanonicalLtd/postinstall-cleanup
Add postinstall cleanup
2015-07-23 16:31:26 -04:00
Ryan Harper ee4c62a7b9 Fix swap support
pyparted uses 'linux-swap(v1)' as the filesystem name to indicate swap files.
Curtin currently recognizes 'swap'.  Update the FormatAction class to emit
'swap' to match curtin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-23 15:26:52 -05:00
Ryan Harper 51cde2339f Switch to GPT partitions
Switch to GPT partition.  This requires using a small gpt partition
to hold grub payloads and flagged as bios_grub.  Add logic to
create a bios_grub_partition if one is not already created when
first partitioning devices.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-07-23 15:26:11 -05: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
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