Dan Bungert
dcb8380a82
storage/v2: get, reset
2021-10-06 18:21:01 -06:00
Dan Bungert
e7276d3fa8
Merge pull request #1069 from mwhudson/lp-1939176
...
only do x-override-status: confirm games for first request for a screen
2021-10-06 17:34:50 -06:00
Michael Hudson-Doyle
eb35a2c69e
use a ContextVar to know when a request is part of making a view
...
we can do this now that we are based on core20
2021-10-06 17:30:47 -06:00
Michael Hudson-Doyle
755436ea45
only do x-override-status: confirm games for first request for a screen
...
this uses a rather unsatisfactory way of identifying the first request for a screen.
for https://bugs.launchpad.net/subiquity/+bug/1939176
2021-10-06 17:30:47 -06:00
Patrick Wu
c934268813
system_setup: changes and fixes
...
1. rebase with main and update autoinstall-system-setup.yml
2. provide a more unified indent style
3. update get_userandgroups() to the dropped one
4. fix the problematic os action
5. simply asignments
6. assign default_loader a default value
7. provide a type-to-file dict in wsl_conf
8. provide stderr info when providing error in creating user
9. update schema and example files
2021-10-06 22:13:15 +08:00
Patrick Wu
1a7274dbba
system_setup: unify api names and simply WSLconfig class into function
2021-10-06 22:13:15 +08:00
Patrick Wu
5c0e64e78a
system_setup: address the run_command fail issue
2021-10-06 22:13:15 +08:00
Patrick Wu
9fbff87fe1
system_setup: changes to the get-usersandgroups
2021-10-06 22:13:15 +08:00
Patrick Wu
32a62748c9
system_setup: initial redesign of generic config handler
...
Also have to change the logic for default loader
2021-10-06 22:13:15 +08:00
Patrick Wu
f31e252436
system_setup: reduce code duplication in getting default value
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
Patrick Wu
032412a938
system_setup: provide configuration calls
2021-10-06 22:13:15 +08:00
Patrick Wu
a211689e08
system_setup: update client_variant to variant
2021-10-06 22:13:15 +08:00
Patrick Wu
0a0c53a61b
system_setup: move all write file actions to configure controller
...
This completes 5. Move all “Commits/Write to file” in the configure controller.
2021-10-06 22:13:15 +08:00
Michael Hudson-Doyle
d647c181f6
Merge pull request #1083 from dbungert/github-no-bionic
...
workflows: drop bionic
2021-10-06 13:59:38 +13:00
Dan Bungert
2886a491b9
workflows: drop bionic
2021-10-05 18:39:00 -06:00
Dan Bungert
e14febd709
Merge pull request #1082 from dbungert/pytest-3
...
unittest: use pytest-3
2021-10-05 17:42:22 -06:00
Dan Bungert
b757b0f972
unittest: use pytest-3
...
pytest-3 lets us set exclude directories, which is helpful with the
desired API testing to seperate them from 'unittest discover' so that we
can keep unit test runtime short.
2021-10-05 17:36:54 -06:00
Michael Hudson-Doyle
115e4cdf65
Merge pull request #1081 from dbungert/slimy-core20
...
slimy: python 3.8
2021-10-06 12:00:14 +13:00
Dan Bungert
64d190573d
Merge pull request #1077 from mwhudson/install-from-langpack-squashfs
...
install from squashfs with langpack preinstalled if present
2021-10-05 16:43:07 -06:00
Dan Bungert
8092b3405b
slimy: python 3.8
2021-10-05 12:27:47 -06:00
Michael Hudson-Doyle
e72022f0a1
install from squashfs with langpack preinstalled if present
2021-10-05 11:42:02 -06:00
Didier Roche
f72d581692
Merge pull request #1080 from dbungert/ci-impish-workaround
...
workflows: avoid impish failing the rest of CI check
2021-10-05 18:33:03 +02:00
Dan Bungert
103f3876b8
workflows: fail-fast false to let other builds run
...
Use fail-fast: false to let the non-failing matrix builds continue to
run. Right now impish is timing out early in the process and we can't
see the results for the others.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-10-05 10:27:08 -06:00
Didier Roche
15f9e9201c
Merge pull request #1073 from canonical/wsl_oobe_deeng_41
...
DEENG-41 - Update TUI command line name and remove unneeded options.
2021-10-05 09:06:20 +02:00
Michael Hudson-Doyle
77af962ab3
Merge pull request #1040 from lambda-propaganda/patch-1
...
Fix advancing from snap list screen before snaps have loaded
2021-10-05 17:13:09 +13:00
Patrick Wu
2490befbd0
system_setup: remove unnecessary params in tui.py
2021-10-05 09:33:21 +08:00
Michael Hudson-Doyle
46f671d14d
Merge pull request #1072 from dbungert/core20-base
...
snapcraft: core20 base
2021-10-05 13:42:51 +13:00
Michael Hudson-Doyle
ffa0d722da
Merge pull request #1071 from dbungert/source-configured
...
server: Source.configured needs await
2021-10-05 11:02:54 +13:00
Dan Bungert
5cbecaea35
Merge pull request #1075 from canonical/wsl-fix-autoinstall
...
Fix crash with autoinstall on non-systemd env
2021-10-04 07:20:03 -06:00
Jean-Baptiste Lallement
6cc8c6169b
Fix crash with autoinstall on non-systemd env
...
On WSL and any system without systemd the server crashes becauses
the syslog id is always set (and never None) and systemd cat cannot
connect to the journal.
We cant set the id to None because the API expects a string, so the
check "is not None" is always true.
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-10-04 13:09:24 -07:00
Dan Bungert
2181b15a87
views/snaplist: set a default selected list
2021-10-03 18:26:08 -06:00
lambda-propaganda
6e99143396
Update snaplist.py
...
fix: done() is called before the snap has loaded causing Attribute error
2021-10-03 18:18:23 -06:00
Dan Bungert
636b4401d2
Merge pull request #1070 from mwhudson/lang-support
...
improve locale support
2021-10-03 17:10:39 -06:00
Dan Bungert
be158a375f
snapcraft: environment and package fixes
...
* adjust environment to set PYTHONPATH to pick up site-packages
* add more required packages
* add script for subiquity-server, and set PYTHONPATH there,
so that the PYTHONPATH takes effect
2021-10-01 13:59:10 -06:00
Michael Hudson-Doyle
8de369ece2
snapcraft: change base to core20
2021-10-01 13:29:31 -06:00
Dan Bungert
b35bf07e9d
server: Source.configured needs await
2021-09-30 22:12:10 -06:00
Dan Bungert
1a3bcbc1c4
Merge pull request #1068 from mwhudson/lp-1935969
...
fixes around logical volume size
2021-09-30 18:21:24 -06:00
Dan Bungert
9dbc24b44c
partitioning: add a constant for default alignment
2021-09-30 17:55:51 -06:00
Michael Hudson-Doyle
b144f234ac
install packages listed by check-language-support when locale_support == "langpack"
2021-09-30 12:09:57 +13:00
Michael Hudson-Doyle
13d541654b
do not configure a locale for a system that does not support locales at all
2021-09-30 12:01:58 +13:00
Michael Hudson-Doyle
5811fe3276
read locale_support from source catalog and pass it to locale model
2021-09-30 11:55:59 +13:00
Michael Hudson-Doyle
0a03ef5257
slight generalization of how to run things chrooted into target
2021-09-30 11:55:04 +13:00
Michael Hudson-Doyle
0890424727
Merge pull request #1067 from mwhudson/lp-1943609
...
never match a disk with 0 size when converting autoinstall config
2021-09-29 15:29:52 +13:00
Michael Hudson-Doyle
cd9d2da989
align size to 4MiB in create lv UI
2021-09-29 15:29:27 +13:00
Michael Hudson-Doyle
f991101e7b
make sure LVM_VolGroup.free_for_partitions is a multiple of 4MiB
2021-09-29 15:13:15 +13:00
Michael Hudson-Doyle
f7491fd5af
make sure size of LV created in guided lvm is a multiple of 4MiB
2021-09-29 15:11:50 +13:00
Michael Hudson-Doyle
52b260bc22
never match a disk with 0 size when converting autoinstall config
...
Sometimes empty CD drives or SD card readers show up as block devices
with 0 size. It never makes sense to select these when converting
autoinstall config to curtin config (and size: smallest is quite likely
to do so!)
For https://bugs.launchpad.net/subiquity/+bug/1943609
2021-09-29 15:03:07 +13:00
Michael Hudson-Doyle
fbc921d9f3
Merge pull request #1065 from dbungert/serializer-defaults
...
Serializer: clarify default / optional
2021-09-29 10:03:00 +13:00
Michael Hudson-Doyle
0d0bd39991
Merge pull request #1059 from dbungert/pubsub-arg
...
pubsub: optional argument at broadcast time
2021-09-29 09:59:56 +13:00