419 Commits

Author SHA1 Message Date
Samuele Pedroni
b673055b7e secboot: deactivate volume again when model checker fails
Merge pull request #10200 from mvo5/fde-hooks-v2-bind-to-model-v2

The model checker runs after the device is opened. However if this
check fails we want to make sure to close the device again.

The PR also contains a commit with typo/description fixes from the review for #10197
2021-05-27 15:31:00 +02:00
Samuele Pedroni
8c76d5fde8 Merge remote-tracking branch 'upstream/master' into HEAD 2021-05-27 11:19:20 +02:00
Maciej Borzecki
e080e452b4 tests/nested/core/core20-create-recovery: update the name of action in request
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-05-27 09:42:56 +02:00
Maciej Borzecki
7b82f2c83d tests/nested/core/core20-create-recovery: verify creating recovery systems at runtime
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-05-24 14:33:25 +02:00
Sergio Cazzolato
51dff3a0b2 Update tests/nested/manual/core20-install-mode-shutdown-via-hook/task.yaml
Co-authored-by: Ian Johnson <person.uwsome@gmail.com>
2021-05-21 11:23:26 -03:00
Sergio Cazzolato
fbd3d35d7e Remove tests.cleanup prepare from test
This tool has not prepeare subcommand anymore and this test was not
updated in the original change
2021-05-19 09:27:48 -03:00
Ian Johnson
97b7d5b77c tests/nested/core20-install-mode-shutdown-via-hook: remove jq on restore
Thanks to Sergio for spotting this

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-05-17 11:05:18 -05:00
Ian Johnson
6a775c76d8 tests/nested/core20-install-mode-shutdown-via-hook: use systemd.sh helper
Thanks to Sergio for the suggestion.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-05-17 11:04:53 -05:00
Ian Johnson
77c4cfa31d tests/nested/manual: add test for install-device + snapctl reboot
This test exercises the install-device hook with the snapctl reboot command to
create a UC20 device which shuts itself down after install mode has finished,
such that we can then reboot it later on and it proceeds to run mode normally.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-05-12 16:25:23 -05:00
Sergio Cazzolato
fbe92e4ab2 New buckets for snapd-spread project on gce 2021-04-27 15:05:56 -03:00
Michael Vogt
8229fcb8b9 kernel: fix typo/improve comment (thanks to Pawel) 2021-04-27 17:49:40 +02:00
Michael Vogt
cec0146d60 Merge branch 'fde-hooks-split-from-10149-1' into fde-hooks-v2.4 2021-04-22 18:39:01 +02:00
Maciej Borzecki
fc01993184 tests/nested/manual/core20-custom-kernel-commandline: use a multiline cmdline file
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-20 11:36:57 +02:00
Maciej Borzecki
dede96303b tests/nested/manual/core20-boot-config-update: tweak comment
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-19 13:46:43 +02:00
Maciej Borzecki
dc0b58cfb9 tests/nested/manual/core20-custom-kernel-commandline: enable full kernel command line override
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-16 08:10:42 +02:00
Maciej Borzecki
8a378bf6b2 tests/nested/manual/core20-boot-config-update: make it manual, support gadget
Add support for command line elements contributed by the gadget. Since we need
to build the image ourselves, make the test manual.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-16 08:10:36 +02:00
Maciej Borzecki
633be52a9e Merge branch 'bboozzoo/uc20-cmdline-full-in-boot-and-bootlloader' into bboozzoo/uc20-command-line-full-with-tests 2021-04-16 08:10:00 +02:00
Sergio Cazzolato
bc8ac8d61b Merge pull request #10135 from bboozzoo/bboozzoo/nested-is-sth-fix
tests/lib/nested: proper status return for tpm/secure boot checks
2021-04-15 15:15:05 -03:00
Sergio Cazzolato
d00c3d7b34 2 variants, with and without secboot
2021-04-15 12:05:01 Preparing
google-nested:ubuntu-20.04-64:tests/nested/manual/ (apr151455-862899)...
2021-04-15 12:05:13 Preparing
google-nested:ubuntu-20.04-64:tests/nested/manual/ (apr151455-863238)...
2021-04-15 12:05:43 Preparing
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_disabled
(apr151455-862899)...
2021-04-15 12:05:57 Preparing
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
(apr151455-863238)...
2021-04-15 12:13:09 Executing
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_disabled
(apr151455-862899) (1/2)...
2021-04-15 12:13:34 Executing
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
(apr151455-863238) (2/2)...
2021-04-15 12:19:45 Restoring
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_disabled
(apr151455-862899)...
2021-04-15 12:19:49 Restoring
google-nested:ubuntu-20.04-64:tests/nested/manual/ (apr151455-862899)...
2021-04-15 12:20:09 Restoring google-nested:ubuntu-20.04-64
(apr151455-862899)...
2021-04-15 12:20:10 Discarding google-nested:ubuntu-20.04-64
(apr151455-862899)...
2021-04-15 12:21:37 Restoring
google-nested:ubuntu-20.04-64:tests/nested/manual/minimal-smoke:secboot_enabled
(apr151455-863238)...
2021-04-15 12:21:42 Restoring
google-nested:ubuntu-20.04-64:tests/nested/manual/ (apr151455-863238)...
2021-04-15 12:22:03 Restoring google-nested:ubuntu-20.04-64
(apr151455-863238)...
2021-04-15 12:22:04 Discarding google-nested:ubuntu-20.04-64
(apr151455-863238)...
2021-04-15 12:22:05 Successful tasks: 2
2021-04-15 12:22:05 Aborted tasks: 0
2021-04-15 12:49:15 -03:00
Maciej Borzecki
a1e5b2843a tests/nested/manual/core20-custom-kernel-commandline: explicitly enable secure boot. fix races, enable debugs
Also verify that boot chains exist

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-14 19:56:23 +02:00
Michael Vogt
e2c3d4b8cb tests: add spread tests for v1/v2 fde-hooks 2021-04-14 14:53:08 +02:00
Maciej Borzecki
0546f0ced4 tests/nested/manual/core20-custom-kernel-commandline: extend the test
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-14 14:04:22 +02:00
Maciej Borzecki
9ba695c07b Merge remote-tracking branch 'upstream/master' into bboozzoo/uc20-cmdline-in-run-mode 2021-04-13 15:48:45 +02:00
Sergio Cazzolato
41fcb02923 Merge pull request #10125 from sergiocazzolato/tests-improve-tests-layouts-part2
tests: update layout for tests - part 2
2021-04-13 07:10:15 -03:00
Maciej Borzecki
bc6ce8be62 tests/nested/manual/core20-custom-kernel-commandline: set custom nested image ID
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-04-12 14:36:44 +02:00