Commit Graph

4295 Commits

Author SHA1 Message Date
Ryan Harper 0e05593897 Implement mountpoint checking
Don't let user pass the same mount twice.  TODO is to
include an error message widget and place the error
there instead of in the mountpoint widget value.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-21 13:49:45 -05:00
Ryan Harper dde90cd42d Implement auto-increment partition numbers
- Remove the (1-4) since GPT partition doesn't have a limit
- Calculate the lastpartition value and handle the case where
  we don't have any at first

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-21 13:36:19 -05:00
Adam Stokes 5ead10de47 add setuptools
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-21 14:15:04 -04:00
Ryan Harper dce4bcf7aa Fix Filesystem and AddPartition Views
- Remove the error when converting sizes between input and initial value
  there is a rounding error in the floating point convertion when
  passing values between humanize() and dehumanize().
- Fix the error when using the full size of the disk as the first
  partition and not accounting for the GPT bios size
- Implement percentage used in Filesystem Views
- Consolidate on unit keywords (single char only)
- use humanize() to append the correct unit size, remove all
  hard-coded sizes when fetching size
- fix bug in calculating total disk size by only asking for the
  largest available partition from parted.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-21 13:07:42 -05:00
Ryan Harper 922e9fce1a Humansize the entries in the displayed Filesystem table
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-21 11:45:53 -05:00
Ryan Harper d32abf0d93 Format filesystem table size as float value.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-21 11:43:18 -05:00
Adam Stokes f57d157722 Add identity view and controller
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-18 14:34:59 -04:00
Adam Stokes ba3e4bc762 Add identity model
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-18 12:50:58 -04:00
Adam Stokes 079098f749 Break out controllers into separate modules
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-18 12:29:56 -04:00
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