Patrick Wu
1a7274dbba
system_setup: unify api names and simply WSLconfig class into function
2021-10-06 22:13:15 +08:00
Patrick Wu
225cb1bd37
system_setup: fixes for after rebasing
...
1. add extra logs
2. improve the answers file
3. await the self.configured in wslconf API
2021-10-06 22:13:15 +08:00
Jean-Baptiste Lallement
4966173d6c
Test system setup autoinstall
...
It also adds an argument --ignore-tz to the schema comparison test to
not fail on system where the schema has no TZ like WSL.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-28 09:32:39 +02:00
Dan Bungert
3de314a64f
fixup: snap & autoinstall
2021-09-22 17:45:58 -06:00
Jean-Baptiste Lallement
ab161250e1
Removed the progress view.
...
On non systemd systems (ie WSL) the progress view is always empty. Thus
this view is removed and the summary (formerly overview) view becomes
the last page of the setup with the reboot button. This button is
displayed dynamically when setup is complete.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-09-01 19:06:50 +02:00
Jean-Baptiste Lallement
3044a1fc11
Update answer file with renamed controllers
...
WSL configuration controllers have been renamed, the answer file must be
updated accordingly
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-08-31 15:52:03 +02:00
Jean-Baptiste Lallement
b0299f255f
Added integration test for WSL
...
This tests covers the configuration of WSL on first boot.
2021-08-31 15:52:03 +02:00
Dan Bungert
0aa5e91670
Add probert output for win10 & bitlocker
2021-08-02 15:04:07 -06:00
Dan Bungert
c79aa602dc
Proper fix for setting timezone inappropriately in dryrun
...
Reenable integration test for set of timezone.
Don't set it while in dryrun.
2021-07-15 10:49:32 -06:00
Dan Bungert
4ed4e51a2e
Workaround dryrun test actually setting timezone
...
Until a proper fix can be finished, remove the set of timezone from the
integration tests.
2021-07-14 19:02:42 -06:00
Dan Bungert
40945f1823
TimeZone: autoinstall and API (FR-1184) ( #986 )
...
* TimeZone: autoinstall and API
Add support for Get/Set timezone methods. Get means that we inquire
with GeoIP as to which timezone is suggested. Non-availability of
GeoIP, or a previous explicit Set, means that we return the system
timezone. Set of timezone by Post results in set of the live system
timzeone, and queuing a set of the target system by way of cloud-init.
* Add clarifying comment about _request.
2021-07-13 06:25:03 -06:00
Michael Hudson-Doyle
916ee7516e
add an imsm integration test
2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle
6be1289933
add examples/imsm.json
2021-07-07 08:40:33 +12:00
Michael Hudson-Doyle
d108d06aa8
add sample data with wifi
2021-06-09 11:07:22 +12:00
Dan Bungert
21058464fd
make_cloudconfig - start moving cloud config generation to models ( #975 )
...
Add make_cloudconfig as a function that models should offer that allows
for generation of the cloud-config snippet.
Move snaplist and locale to this mechanism.
Add a test for snaplist output.
2021-06-08 16:54:29 -06:00
Dan Bungert
2da973579e
Cleanup example data
...
These examples were crashing dryrun if supplied as a machineconfig due
to the missing blockdev.
2021-06-02 14:54:43 -06:00
Michael Hudson-Doyle
1da1ead19c
add a integation test for non-rich mode
2021-05-04 12:44:41 +12:00
Michael Hudson-Doyle
3b60666495
Merge pull request #925 from mwhudson/lp-1885644-again
...
add all documented fields to filesystem model classes
2021-04-12 11:24:23 +12:00
Michael Hudson-Doyle
5dbd872919
add test of mount options being propagated
2021-04-06 09:16:55 +12:00
Dan Bungert
a0e2e244bd
add setting policy for post-install updates via autoinstall ( #920 )
...
* Add element updates (non-UI)
This can be controlled with autoinstall
updates: security or all
Also an API for controlling this:
curl --silent --unix-socket .subiquity/socket a/updates ->
"security"
curl -d '"all"' --unix-socket .subiquity/socket a/updates
* Automated tests - log grep for default/none/all states
* Enforce possible values on Updates controller
Route all the various get/set thru 2 common functions.
Validate incoming data.
2021-03-31 13:57:53 -06:00
Michael Hudson-Doyle
4cdfe469e7
run error commands on failure
2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle
edc43ff811
add a minimal server process
...
run it automatically in dry-run mode
2020-09-22 14:43:26 +12:00
Foster "Forst" Snowhill
069e870137
examples/autoinstall-interactive: remove duplicate "snaps" section
2020-08-23 14:28:26 +02:00
Michael Hudson-Doyle
b8c9ca2484
add mirror to examples/autoinstall.yaml
2020-06-12 15:31:15 +12:00
Michael Hudson-Doyle
3c98f68fcf
use a real locale in examples/autoinstall.yaml
2020-05-21 10:49:42 +12:00
Michael Hudson-Doyle
ba106bbbed
tests
2020-05-05 23:05:59 +12:00
Michael Hudson-Doyle
86376a4b78
be more intelligent about waiting for nics to get dhcp address when no autoinstall config is provided
2020-05-04 19:39:08 +12:00
Michael Hudson-Doyle
4891d76aca
actually write the netplan from the autoinstall config to the target system
...
I got lost in a forest of similarly named methods :(
2020-05-04 19:37:43 +12:00
Michael Hudson-Doyle
81b459cb99
make spare_devices optional in autoinstall config
2020-05-04 14:18:42 +12:00
Michael Hudson-Doyle
8a84e470c5
make sure the size of a partition gets set to int
2020-05-04 14:16:03 +12:00
Michael Hudson-Doyle
abc64fb5f2
do not force double "network" keys in autoinstall config
...
I obviously didn't test this very hard before release :/
2020-04-29 19:46:17 +12:00
Michael Hudson-Doyle
1ba62ec1cc
make sure late-commands actually run :(
2020-04-22 17:11:25 +12:00
Michael Hudson-Doyle
0d51d66a57
rename MAKE_BOOT action to TOGGLE_BOOT
2020-04-21 10:51:00 +12:00
Michael Hudson-Doyle
670c9c838a
add test for locale: in autoinstall file
2020-04-20 20:34:08 +12:00
Michael Hudson-Doyle
6ee32f4e19
have asking for confirmation cancel showing progress
...
otherwise the confiration dialog appears for 0.1s and then disappears, leaving the user stranded
2020-04-20 19:38:31 +12:00
Michael Hudson-Doyle
18e4d977e9
fix autoinstall refresh code to (a) match docs (b) work
2020-04-19 22:48:27 +12:00
Michael Hudson-Doyle
e91f8bbf89
fix for omitting identity section when passing user-data
2020-04-19 21:44:09 +12:00
Michael Hudson-Doyle
96a6dfd010
add integration-style test for reusing an existing partitions
2020-04-14 09:50:56 +12:00
Michael Hudson-Doyle
22d84fb4cc
fix some merge conflict resolution damage
2020-04-02 10:26:08 +13:00
Michael Hudson-Doyle
c1c33dee03
add a simple integration test for autoinstall
2020-04-02 10:22:08 +13:00
Michael Hudson-Doyle
c1855fe6d1
support packages, debconf-selections keys in autoinstall
2020-04-02 10:22:05 +13:00
Dimitri John Ledkov
6a091fcc44
Merge pull request #665 from mwhudson/cmdlist-checking
...
tweak autoinstall command lists
2020-04-01 22:13:10 +01:00
Michael Hudson-Doyle
abc8f1dfb2
decouple install confirmation from filesystem view
...
because, in a partially interactive install, we might not show the
filesystem view at all, but should still ask for confirmation before
starting curtin
2020-03-31 22:58:05 +13:00
Michael Hudson-Doyle
03661dabec
tweak autoinstall command lists
...
allow commands to be lists or strings
consider errors to be failures (except in error-commands)
2020-03-31 22:42:24 +13:00
Dimitri John Ledkov
e416dd39f0
Merge pull request #663 from mwhudson/autoinstall-snaps
...
handle the 'snaps' section of the autoinstall file
2020-03-31 09:32:53 +01:00
Michael Hudson-Doyle
a15858d934
handle the 'snaps' section of the autoinstall file
...
went through a few versions of this locally, this one is pleasingly
small in delta.
2020-03-31 17:09:47 +13:00
Michael Hudson-Doyle
32e79826ad
do data loading / validation in a context
2020-03-30 10:35:45 +13:00
Michael Hudson-Doyle
32817ac410
add an invalid autoinstall file
2020-03-30 10:29:01 +13:00
Michael Hudson-Doyle
3856a11186
fix deleting virtual network devices
2020-03-20 09:18:25 +13:00
Michael Hudson-Doyle
cc52bb62a5
fix enabling dhcp on a virtual interface
2020-03-20 09:17:29 +13:00
Michael Hudson-Doyle
99218fbeb4
support early and late commands
2020-02-04 14:03:59 +13:00
Michael Hudson-Doyle
9db0c18fdd
add some example autoinstall files
2020-02-04 13:49:09 +13:00
Michael Hudson-Doyle
e8a9cdf4f8
have dry-run install failures replay events from a real failure
2019-11-21 11:25:43 +13:00
Dimitri John Ledkov
82883cf75b
Add multipath machine config
2019-10-08 15:40:50 +01:00
Dimitri John Ledkov
94de7dc522
Merge remote-tracking branch 'origin/pull/500/head'
...
Merge using existing partitions. Revert to using archive
curtin/deps/etc.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2019-07-02 13:18:46 +01:00
Dimitri John Ledkov
71dbea28b1
Upgrade consoleconf in Ubuntu archive with i18n support.
...
Fixes #502
2019-07-01 11:07:27 +01:00
Dimitri John Ledkov
dac6f12c0f
Basic zdev view
2019-06-06 16:15:15 +01:00
Michael Hudson-Doyle
118a11cfa6
remove old sample machine data
2019-05-30 15:38:09 +12:00
Michael Hudson-Doyle
0c55149c31
run integration tests with simple sample data
2019-05-30 15:33:59 +12:00
Michael Hudson-Doyle
e6ace190e3
add existing partitions sample data
2019-05-30 15:10:54 +12:00
Michael Hudson-Doyle
4a22f22189
when assembling vg from answers, check devices are ok_for_lvm_vg
...
And similar for RAID. Fix a couple of the answers files that got this
wrong and only worked by chance.
2019-05-30 10:07:26 +12:00
Dimitri John Ledkov
25071d9cf0
Drop installpath
2019-05-14 16:03:33 +02:00
Michael Hudson-Doyle
d6ccebf9bb
have answers-lvm-dmcrypt.yaml edit the vg's encryptedness off and on again
2019-05-02 13:00:42 +12:00
Michael Hudson-Doyle
e12cdab65e
hack snap version numbers in sample data to be more realistic
2019-04-09 23:13:37 +12:00
Michael Hudson-Doyle
0ce5a6bc2e
record current and new versions of snap
2019-04-09 23:10:11 +12:00
Michael Hudson-Doyle
194137a151
Support 'accept-default' and 'country-code' in mirror answers
2019-04-04 12:12:50 +13:00
Michael Hudson-Doyle
35d41e26fd
Merge pull request #434 from mwhudson/refresh-branch
...
customize where subiquity refreshes from
2019-04-03 14:36:34 +13:00
Michael Hudson-Doyle
ec15929d60
Update to probert tip
...
The minimum required: it still only looks at the "blockdev" key in the
probe data, none of the exciting new stuff.
2019-04-02 13:43:09 +13:00
Michael Hudson-Doyle
f1177788e1
snap switch subiquity to stable/ubuntu-XX.YY.Z
...
also support passing subquity-channel= on the kernel command line
2019-03-29 15:07:11 +13:00
Michael Hudson-Doyle
c1f8c10091
answers support for refresh screen
2019-03-12 11:49:03 +13:00
Michael Hudson-Doyle
4c1d374ee5
add snapdconnection.post and fake data captured from a real refresh
2019-03-12 11:49:03 +13:00
Michael Hudson-Doyle
9c9120403f
add refresh sample data that shows an update for subiquity
2019-03-12 11:49:03 +13:00
Michael Hudson-Doyle
53d1006a06
Make the code for talking to snapd more generic
...
In preparation for the self-refresh and snap enterprise proxy work, both
of which will require talking to the snapd API.
This also makes the "snaps-from-examples" fakery happen at a lower level.
2019-03-04 16:18:57 +13:00
Michael Hudson-Doyle
8892e027e9
make sure that dmcrypt passphrase does not end up in log
2019-02-28 11:55:44 +13:00
Michael Hudson-Doyle
1e3a786ac2
add example with encrypted lvm
2019-02-28 11:55:17 +13:00
Michael Hudson-Doyle
c571f58dcc
fix saving static network data with search domains
2019-02-21 08:35:19 +01:00
Michael Hudson-Doyle
87ad4c3347
update snap sample output with snap 2.37 output
2019-02-13 14:28:38 +13:00
Michael Hudson-Doyle
dfe61a0f6e
fix import of ssh keys in answers bw compat support
2018-12-18 13:55:30 +13:00
Michael Hudson-Doyle
868e1ac47b
convert example answers
2018-12-13 14:15:43 +13:00
Michael Hudson-Doyle
bee1109a2d
Much more fine grained answers support for networking.
2018-10-31 09:59:31 +13:00
Michael Hudson-Doyle
ea7625881f
add answers file that takes the guided-lvm option
2018-07-07 22:01:38 +12:00
Michael Hudson-Doyle
32b7d785cd
answers support for lvm and some related fixes
2018-07-07 20:59:47 +12:00
Michael Hudson-Doyle
1461fee251
require that /boot be on a partition of a local disk
2018-07-05 14:48:09 +12:00
Michael Hudson-Doyle
7124b5699a
fix typo and improve test to catch it
2018-07-05 11:14:39 +12:00
Michael Hudson-Doyle
d85a45ae37
remove format/mount options from create raid dialog
2018-07-04 14:18:27 +12:00
Michael Hudson-Doyle
3ca23e82a9
RAID support for filesystem answers
2018-06-26 12:25:38 +12:00
Michael Hudson-Doyle
d52823c68f
use a less ambiguous way of specifying a device in answers
2018-06-19 23:49:34 +12:00
Michael Hudson-Doyle
650b185920
add an answers file that creates a swap partition
2018-06-19 11:43:59 +12:00
Michael Hudson-Doyle
29d21c2a57
Merge pull request #359 from smoser/fix/spaces-in-events-json
...
Fix curtin block comments in example events.
2018-06-11 12:26:26 +12:00
Scott Moser
777610572b
Add a mirror panel.
...
This very simply adds a mirror panel to subiquity.
Nothing intelligent at all. Just defaults to filling with
http://archive.ubuntu.com/ubuntu/ and lets user fill it in.
As implemented here, the mirror only replaces primary mirror,
security will still use http://security.ubuntu.com/ubuntu/
2018-06-08 12:21:28 -04:00
Scott Moser
b82f90f7b1
Fix curtin block comments in example events.
...
I fixed the 'c u r t i n b l o c k'... report event in the code a few
commits back, but when using dry-run it was still present because
dry run uses the events json rather than real curtin output.
This just updates the events json to be in line with reality as
it was confusing to see it in the dry run path.
2018-06-08 10:54:28 -04:00
Michael Hudson-Doyle
c53b3dae8f
change back to looking for ssh-import-id in answers
2018-06-01 10:22:55 +12:00
Michael Hudson-Doyle
f2d0d0aade
update default snap store section and examples to server
2018-05-31 09:54:07 +12:00
Michael Hudson-Doyle
57091ffc35
add a README to examples/snaps
2018-05-23 10:14:17 +12:00
Michael Hudson-Doyle
52560dc82c
answers support and some other fixes
2018-05-22 23:01:28 +12:00
Michael Hudson-Doyle
4a631ee447
some snap sample data (games for now!)
2018-05-21 14:17:30 +12:00
Michael Hudson-Doyle
606573fa86
simplify answers handling
2018-05-18 13:53:51 +12:00
Michael Hudson-Doyle
1033f2041f
answers support
2018-05-18 13:53:51 +12:00
Michael Hudson-Doyle
30a4810f9a
add an example config that has multiple nics & disks
2018-05-07 10:23:48 +12:00
Michael Hudson-Doyle
13eaa5c9dc
add a bare-bones proxy model/view/controller
2018-04-09 15:05:46 +12:00
Michael Hudson-Doyle
6b156766bb
change replay-curtin-log to give a more realistic experience in dry-run mode
2018-02-28 15:57:35 +13:00
Michael Hudson-Doyle
37d93a1954
Merge pull request #275 from CanonicalLtd/maas-option
...
Re-add installpath controller, with added MAAS views.
2018-02-21 12:24:08 +13:00
Michael Hudson-Doyle
f28df37113
add example config with a virtio disk
2018-02-13 09:52:12 +13:00
Michael Hudson-Doyle
4616a600fe
examples/curtin-events-install.json -> examples/curtin-events.json, remove postinstall example events
2018-02-12 13:25:03 +13:00
Michael Hudson-Doyle
b7fe9d6899
answers support for installpath
2018-02-12 12:44:58 +13:00
Michael Hudson-Doyle
2cc3989ad2
some keyboard selection fixes I had forgotten to push to github :(
2018-02-08 11:57:52 +13:00
Michael Hudson-Doyle
1794ed53dd
implement keyboard selection ( #276 )
...
A new screen immediately after language.
2018-02-08 10:37:22 +13:00
Michael Hudson-Doyle
94b4f550e3
update config to match probert changes
2017-11-27 09:54:11 +13:00
Michael Hudson-Doyle
6919e5ce68
minimal implementation of canned answers
...
this allows automation of the enter-enter-enter flow, not much more than that
2017-11-17 13:25:16 +13:00
Michael Hudson-Doyle
e7bfb9ef0c
change examples/mwhudson.json to have a devpath not usually mounted
...
really "which partitions are mounted" should be part of the save data.
2017-11-16 12:11:30 +13:00
Michael Hudson-Doyle
fcd189a892
remove examples that now fail to load with new network format
...
add example from my system.
2017-11-16 10:50:50 +13:00
Michael Hudson-Doyle
d756596093
hook up curtin's event reporting into journald and watch these messages during install
2017-09-18 22:50:00 +12:00
Michael Hudson-Doyle
81fcdfd01b
fix blockdev_align_up to actually round up by 1M, not 1G
...
part of https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1654079
2017-01-05 14:45:14 +13:00
Ryan Harper
5298092d15
Update example probe data to include info from latest probert
...
Probert includes network info on bonds and bridges, include this
data as we now rely upon it in the network model.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-06 10:38:03 -06:00
Ryan Harper
57be9d82b9
Fix show-disk-info from breaking on devices without a bus
...
When fixing show-disk-info on virtio devices, a thinko when
indexing the info structure caused issues when looking at
a secondary clause in a compound statement. Fix this by
extracting the value via a .get and checking.
- Also include a probert dump of a virtio-based cloud image
for testing with virtio devices.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-11-02 13:39:09 -06:00
Adam Stokes
b148025f31
Update my desktop machine profile
...
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-10-26 10:53:43 -04:00
Ryan Harper
eddc55faa0
First cut on raid ux and model integration
...
Introduce a new Raiddev class to hold raid virtual device.
Add RaidAction to emit correct storage config
Tested with raid level 0 only.
Not sure if we can allow partitioning of raid devices. Documentation
says it can be done but curtin will need to 'make it correctly'.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-10-09 08:57:37 -05:00
Ryan Harper
8aedabef3b
Add nonic example file
...
Test nonics with: MACHINE=examples/nonics.json make
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-03 13:47:35 -05:00
Adam Stokes
4ff83aa99e
add another machine json
...
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-31 09:37:39 -04:00
Ryan Harper
8a0e9ebdfd
Add new cli option to read machine probe data from file
...
Allow user to specify a probert machine configuration file to be
used during the installer. If presented with the config file
no probing of the host will occur.
In the case that disks don't have a size in the data collected then
they'll be marked as USED.
Add a few example machines and update the README on how to specify.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-08-28 13:22:29 -05:00