Michael Hudson-Doyle
9edb676a9b
Remove unused copies of controllers from console_conf.
...
These were the same as the corresponding file from subiquitycore and not
in fact imported by anything.
2016-07-26 14:43:22 +12:00
Michael Hudson-Doyle
04a6d88ffe
rename ViewPolicy to BaseView
2016-07-26 14:21:24 +12:00
Michael Hudson-Doyle
809034728c
rename ModelPolicy to BaseModel
2016-07-26 14:20:10 +12:00
Michael Hudson-Doyle
f027382877
rename ControllerPolicy to BaseController
2016-07-26 14:17:30 +12:00
Mathieu Trudel-Lapierre
0b0ad660a3
Merge pull request #133 from CanonicalLtd/mwhudson/cleanups
...
cleanups
2016-07-25 18:03:54 -04:00
Michael Hudson-Doyle
264f698299
Fix flake8 warnings in subiquitycore.
...
Except for line length warnings, because life is too short of that.
A few of these are real bugs.
2016-07-25 14:44:51 +12:00
Michael Hudson-Doyle
1fdb035cdf
Fix flake8 warnings in console_conf
2016-07-25 12:55:42 +12:00
Michael Hudson-Doyle
e95daf25ba
Re-introduce 'subiquity' package for installer specific things.
...
Only move the Application object for now.
2016-07-25 12:51:39 +12:00
Michael Hudson-Doyle
173fdcb77f
rename subiquitycore.core.Controller to Application
...
Also CoreControllerError -> ApplicationError
2016-07-25 12:38:19 +12:00
Mathieu Trudel-Lapierre
8e6ff11fb7
curtin: note the need for --extrausers on snappy.
2016-07-09 13:07:52 -04:00
Mathieu Trudel-Lapierre
6235ae789e
Revert "XXX: adduser with extrausers database"
...
This is more meant for console-conf on snappy; doesn't quite apply
to standard subiquity.
This reverts commit 4695735d79
.
2016-07-09 13:05:26 -04:00
Mathieu Trudel-Lapierre
4695735d79
XXX: adduser with extrausers database
2016-07-09 13:04:42 -04:00
Mathieu Trudel-Lapierre
4e1bab7f55
Install systemd service files
2016-07-08 21:43:07 -04:00
Mathieu Trudel-Lapierre
9558c1a357
Update and clean up packaging to build separate binaries
2016-07-08 16:46:16 -04:00
Mathieu Trudel-Lapierre
6707f8731e
setup.py: update to account for subiquitycore rename
2016-07-08 15:56:50 -04:00
Mathieu Trudel-Lapierre
62e70afd02
console_conf: make sure we're recognized as a package
2016-07-08 15:56:26 -04:00
Mathieu Trudel-Lapierre
6133de63fe
Merge branch 'cyphermox/debian' into cyphermox/console_conf
2016-07-08 15:23:07 -04:00
Mathieu Trudel-Lapierre
1d8c5b3cdb
Deal with the fact there may be no default route for an IP family.
2016-07-06 18:30:43 -04:00
Mathieu Trudel-Lapierre
6ae734302f
Makefile: use xenial branch for Makefile builds
2016-07-06 18:27:26 -04:00
Mathieu Trudel-Lapierre
0205423133
Do a slightly better job at showing default gateways.
2016-07-06 18:14:13 -04:00
Mathieu Trudel-Lapierre
73d73dff94
NetworkView: rework layout for network info based on review.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 17:24:31 -04:00
Mathieu Trudel-Lapierre
be0457f9ea
Don't filter logs at all.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:51:46 -04:00
Mathieu Trudel-Lapierre
f6bb666c4d
Simplify defining core with only the general flow.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:50:21 -04:00
Mathieu Trudel-Lapierre
e85859fa62
WelcomeView: update UI to Mark's review: welcome string and button caption
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:35:19 -04:00
Mathieu Trudel-Lapierre
848ccabc7d
console_conf: start initial console-conf tree with a custom controller story
...
And a custom Welcome screen to boot; to show the overriding of settings.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:18:54 -04:00
Mathieu Trudel-Lapierre
e1970b6477
Rename subiquity to subiquitycore -- will serve as base classes for everything
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-30 14:17:01 -04:00
Mathieu Trudel-Lapierre
1b03fb4b21
debian: merge packaging in main subiquity tree.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-28 14:02:33 -04:00
Mathieu Trudel-Lapierre
a721eba5c1
Add an 'install' mode; firstboot will be the default to avoid trashing installs
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-28 11:30:40 -04:00
Mathieu Trudel-Lapierre
1dddd0399e
Move on to identity and then install (or login if in firstboot mode).
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-28 11:28:56 -04:00
Mathieu Trudel-Lapierre
5b86abca12
Use git+ssh and a newer snapshot revision to get probert.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-23 23:29:34 +03:00
Mathieu Trudel-Lapierre
d4f1ed1951
Merge firstboot logic into subiquity proper; make it generic enough to work for both the installer and firstboot cases.
2016-06-23 23:27:09 +03:00
Ryan Harper
346d4fa37d
Change subuiquity to run as firstboot for snappy.
...
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2016-06-22 14:19:54 -05:00
Ryan Harper
2007d6401b
add check for empty loopdev to geninstaller
...
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2016-06-22 13:30:27 -05:00
Ryan Harper
c8123f9f38
Fix up issues with partition tables when not needed
...
- Don't include Disk entries in storage config unless they've been modified
- Make sure underlying devices don't include partition table unless needed
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2016-01-04 07:26:22 -06:00
Ryan Harper
e9e951a8d7
Merge pull request #130 from CanonicalLtd/add-lvm-ux
...
Add lvm ux
2015-12-04 09:36:47 -06:00
Ryan Harper
362d253627
Merge remote-tracking branch 'origin' into add-lvm-ux
2015-12-04 09:31:28 -06:00
Ryan Harper
f31977f310
Merge pull request #129 from CanonicalLtd/fix-geninstall-with-latest-curtin
...
Fix geninstall with latest curtin
2015-12-04 09:16:53 -06:00
Ryan Harper
6fcbd0f442
Apply some lint fixes
...
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-04 09:15:49 -06:00
Ryan Harper
52d61a52b5
Fix issues with new identity form
...
- When user did not specify ssh/github id, this broke our postinstall template
Fix by only appending ssh-import-id if user specifies a value.
- Move hostname config into a separate part of the postinstall cloud-init
userdata so cloud-init actually applies the hostname specified
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-04 09:11:18 -06:00
Ryan Harper
eeb90373b5
Fix curtin install error detection and presentation
...
When curtin encountered an error, if the resulting message
was very large, this would prevent the progress screen from
displaying useful information and left the user believing the
install was still going on even when it had stopped.
Resolve this by applying some post processing on the curtin
error message to help user better spot the issue. We also
update the Title, Header and Footer to indicate an error has
occurred.
Finally, left-align the progress output.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-04 09:07:21 -06:00
Ryan Harper
153f41c989
Fix installer to work with latest curtin
...
The latest curtin now does package dep checks during installation
which may install and enable things like lvm2 and mdadm. These
packages trigger running daemons which prevent the unmounting of
filesystem when building the installer image. Resolve this by
re-implementing curtin's [un]disable_daemon_in_root functions.
Update runinstaller to use 3 spare disks as virtio to enable
raid testing.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-04 09:01:19 -06:00
Ryan Harper
1c4f05fe91
Fix use of partitions in LVM and displaying them properly
...
The holders and tags were kept on the Disk object, however when
using partitions, this wasn't available since partitions are
represented by an action object. Avoid this by hanging the
holders and tags off of the filesystem model directly, indexing
by device.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-02 09:40:17 -06:00
Ryan Harper
9af6f59f45
Allow unformatted partitions to have empty mounts
...
We should not require unformatted partitions to have a mount
point. Fix valid_mount check.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-01 15:19:54 -06:00
Ryan Harper
44d7d87f27
Add LVM2 model and integrate with filesystem model
...
Enable Create Logical Volume (LVM2) option in filesystem view.
Implement backend for building and emitting LVM storage config.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-12-01 13:30:53 -06:00
Ryan Harper
eb98687e86
Actions: Add LVM Volgroup and Partition objects
...
Add volgroup and partition action objects to emit
required lvm curtin storage configuration.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-30 15:28:52 -06:00
Adam Stokes
2bd7c2a00a
Merge pull request #128 from CanonicalLtd/identity_ux_update
...
Identity ux update
2015-11-20 17:17:13 -05:00
Ryan Harper
0534ef1d72
cleanup identity ux and lint fixes
...
- fix make check
- Forgot colon after Confirm your password
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 16:05:23 -06:00
Ryan Harper
13c06bd5c1
Update identity UX
...
- Model inputs after Ubiquity layout
- Add Servername (hostname)
- Add SSH ID import (import from launchpad or github)
- Include information under important fields
- Drop old/unused hostname MVC files
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 16:00:10 -06:00
Ryan Harper
e2902099e0
lint: fix up indentation found by make check
...
Missed a make check before merging a branch.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-20 09:57:14 -06:00
Ryan Harper
d2bec60d54
Merge pull request #127 from CanonicalLtd/hide_menu_options_as_needed
...
Hide menu options as needed
2015-11-20 09:56:04 -06:00