Commit Graph

5227 Commits

Author SHA1 Message Date
Olivier Gayot a3b0c48426 ubuntu-pro: fix missing return statement
The function is_token_added_overlay supposedly returns a boolean. But
the absence of a final return False statement made it return None by
accident.

In practice, it should not make a difference because returning False or
None evaluate to False in a boolean context. But returning False is
cleaner (sorry Perl).

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-03 14:55:39 +02:00
Michael Hudson-Doyle 5c0e8bf8f2
Merge pull request #1374 from dbungert/curtin-kname
curtin: rev for kname fix
2022-08-03 09:06:48 +12:00
Dan Bungert 0707dae62e curtin: rev for kname fix 2022-08-02 09:15:35 -06:00
Dan Bungert 5378b5298c
Merge pull request #1370 from dbungert/keyboard-scraper
keyboard: layout data & generation script
2022-08-01 17:17:46 -06:00
Dan Bungert cb251acfaf
Merge pull request #1347 from blackboxsw/cloud-init/emit-clean-script
cloud_init_files: render a clean script to /etc/cloud/clean.d
2022-08-01 15:22:39 -06:00
Olivier Gayot c59a116f5d curtin-replay: update expected syslog identifier for curtin log lines
In the past, curtin log lines had the syslog identifier matching
"curtin_log.xxx". Nowadays, curtin commands are started via
systemd-run so they end up inheriting from the default
"subiquity_log.xxx" syslog identifier.

When updating the examples/curtin-*.json files, one must make sure to
filter out the entries that have the "subiquity_log.xxx" but are not
related to curtin invocations.

In the future, maybe we need to consider overriding the syslog
identifier when invoking curtin commands.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-01 09:26:12 +02:00
Olivier Gayot 3efed0e211 curtin-replay: improve CLI of replay-curtin-log
We now use argparse on replay-curtin-log, which provides the --help
option along with named parameters for what used to be positional
parameters only.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-08-01 09:26:11 +02:00
Dan Bungert 450b65601a update languagelist and layout suggestions 2022-07-29 14:13:27 -06:00
Dan Bungert 73e4ee6fe5 keyboards: include layout config file in snap 2022-07-29 14:02:45 -06:00
Dan Bungert afb8099f66 keyboard: load suggestions from file 2022-07-29 13:01:26 -06:00
Dan Bungert 271a1b2d29 scripts: add keyboard-scraper.sh
This script runs keyboard-configuration.config in a chroot.  By running
interesting locales against it, we can obtain keyboard suggestions.
2022-07-29 13:01:18 -06:00
Dan Bungert d1dc7d4844
Merge pull request #1368 from dbungert/default-kb-from-lang
keyboard: lookup layout & variant from language
2022-07-27 18:18:37 -06:00
Dan Bungert dbb8be4e72 keyboard: suggest language / variant for locale 2022-07-27 17:23:42 -06:00
Dan Bungert 7bb4a1a5f3 keyboard: restructure unit test for async 2022-07-27 17:23:42 -06:00
Michael Hudson-Doyle 57fb6b8072
Merge pull request #1366 from mwhudson/lp-1982903
add .path to Raid so for_client(raid-with-partitions) works
2022-07-28 09:25:41 +12:00
Dan Bungert 6b13c84e4c
Merge pull request #1354 from dbungert/ptable-msdos-more-betterification
filesystem: logical part numbering and related
2022-07-27 09:05:19 -06:00
Dan Bungert 65ae5ab13c gaps: fix LVM_VolGroup check on Disk 2022-07-27 08:44:15 -06:00
Michael Hudson-Doyle ce146ab28a add .path to Raid so for_client(raid-with-partitions) works 2022-07-27 17:22:08 +12:00
Dan Bungert 8d1a296796
Merge pull request #1365 from dbungert/set-contact
snapcraft: set contact field
2022-07-26 19:03:55 -06:00
Dan Bungert db95d2f215 snapcraft: set contact field 2022-07-26 17:42:52 -06:00
Dan Bungert c3ec10e801
Merge pull request #1358 from dbungert/fips-warning
source view: FIPS/RT kernel warning
2022-07-26 08:54:29 -06:00
Olivier Gayot c8a5292608
Merge pull request #1362 from ogayot/fde-curtin-application-state
meta/status: replace POST_WAIT and POST_RUNNING by generic states
2022-07-26 09:27:22 +02:00
Dan Bungert 6b1909f6c5
Merge pull request #1363 from dbungert/guided-target-reformat-min-size
guided reformat: check min size
2022-07-22 07:00:47 -06:00
Dan Bungert 2cf056ad08 guided reformat: check min size 2022-07-22 06:46:13 -06:00
Dan Bungert bc6d7d7386
Merge pull request #1364 from dbungert/mc-simple-bigger
examples: make the 'simple' mc disk bigger
2022-07-22 06:19:09 -06:00
Olivier Gayot 91870c8214 meta/status: replace POST_WAIT and POST_RUNNING by generic states
With the plan to call curtin multiple times where each invocation has a
specific purpose, we want the client to have a simple way to monitor the
status of the installation.

Instead of defining new application states for each stage, we will
report the more generic WAITING / RUNNING states in a loop until we get
to the final stages of the installation.

To start with, we are dropping POST_WAIT and POST_RUNNING in favor or
WAITING and RUNNING.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-07-22 10:51:01 +02:00
Dan Bungert c473a22bf1 examples: make the 'simple' mc disk bigger
Increase size of the disk in the simple machine config to 100 GiB.
This file is used heavily as a basic starting machine config and it
should be large enough for many types of tests.
2022-07-21 08:52:42 -06:00
Dan Bungert 75af7b9df7 source view: FIPS/RT kernel warning 2022-07-19 14:04:50 -06:00
Dan Bungert 6e2ecfc497 filesystem: only use logical part renum if forced 2022-07-19 13:00:12 -06:00
Dan Bungert 7eb51f37d3 filesystem: simplify extended unit tests 2022-07-19 11:47:57 -06:00
Dan Bungert f18549aa8e gaps: api tests for 'usable' 2022-07-19 11:47:57 -06:00
Michael Hudson-Doyle 73fa62cbe7 labels: update gap description 2022-07-19 11:47:57 -06:00
Dan Bungert 111aefc54a gaps: report as usable or not 2022-07-19 11:47:57 -06:00
Dan Bungert 8ad8610ffb filesystem: unit test size and lvm checks 2022-07-19 11:47:57 -06:00
Dan Bungert e9950df869 filesystem: guided unit test refactor 2022-07-19 11:47:57 -06:00
Dan Bungert 481400ce02 filesystem: expand some msdos ptable tests to vtoc 2022-07-19 11:47:57 -06:00
Dan Bungert 832caeda55 filesystem: renumber logicals on deletion 2022-07-19 11:47:57 -06:00
Dan Bungert f0c23f659f filesystem: tests for numbering logical partitions 2022-07-19 11:47:57 -06:00
Dan Bungert 396dca07b8 filesystem: more deliberate numbering for logicals 2022-07-19 11:47:57 -06:00
Dan Bungert f872375265 filesystem: cleanup alignment data test 2022-07-19 11:47:57 -06:00
Dan Bungert 70e6814824
Merge pull request #1356 from dbungert/orig-config
filesystem: add orig_config API
2022-07-18 17:51:12 -06:00
Dan Bungert f3859904a4 filesystem: add orig_config API
Clients may want a view of the unmodified disk configuration.
2022-07-18 17:02:10 -06:00
Michael Hudson-Doyle ce42b946e5
Merge pull request #1355 from dbungert/workflow-no-impish
workflows: -impish
2022-07-19 09:13:47 +12:00
Dan Bungert 5bd940cb0a workflows: -impish 2022-07-18 13:17:58 -06:00
Chad Smith 17408993f6 cloud_init_files: render a clean script to /etc/cloud/clean.d
To support golden image creation from the live installer,
provide cloud-init with /etc/cloud/clean.d/99-installer script.

This script will only be invoked when sudo cloud-init clean is
run, which is typically only used when trying to create customized
golden images.
2022-07-16 01:55:46 +00:00
Chad Smith ddaf48b334 models: subiquitycore.network.rendered_config_paths to list generated files 2022-07-14 21:48:51 -06:00
Chad Smith a531ade6c3 file_util: generate_timestamped_header function to any subiquity written files 2022-07-14 21:48:51 -06:00
Michael Hudson-Doyle d9ad8134e9
Merge pull request #1351 from mwhudson/ignore-running
Pass ignore-running: true when refreshing ourself
2022-07-15 12:41:18 +12:00
Michael Hudson-Doyle 942e5f5f1b set _ORIG variables in environment for 'subiquity' app
this so orig_environ works when connecting via SSH
2022-07-15 12:13:37 +12:00
Michael Hudson-Doyle 135a870509 restart into cleaned environment 2022-07-15 11:21:42 +12:00