Skip to content

Commit

Permalink
Merge pull request #20190 from manfredi/issues-166133
Browse files Browse the repository at this point in the history
Create Agama installation for full encryption
  • Loading branch information
jknphy authored Sep 18, 2024
2 parents 9f18092 + 43ddabf commit b8b30d3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
13 changes: 13 additions & 0 deletions schedule/yam/agama_full_disk_encryption.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: agama
description: >
Perform full disk encryption installation with agama.
schedule:
- yam/agama/boot_agama
- yam/agama/import_agama_profile
- yam/agama/patch_agama_tests
- yam/agama/agama
- installation/grub_test
- installation/boot_encrypt
- installation/first_boot
- console/validate_encrypt
19 changes: 19 additions & 0 deletions tests/yam/agama/import_agama_profile.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Copyright 2024 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: Run Agama profile import on Live Medium
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base Yam::Agama::patch_agama_base;
use strict;
use warnings;
use testapi qw(assert_script_run data_url get_required_var select_console);

sub run {
select_console 'root-console';
my $profile = get_required_var('AGAMA_PROFILE');
my $profile_url = data_url($profile);
assert_script_run("/usr/bin/agama profile import $profile_url", timeout => 300);
}

1;
4 changes: 1 addition & 3 deletions tests/yam/agama/patch_agama_tests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ use base Yam::Agama::patch_agama_base;
use strict;
use warnings;
use testapi;
use Utils::Architectures 'is_s390x';

sub run {
select_console 'root-console' unless is_s390x;

select_console 'root-console';
my ($repo, $branch) = split /#/, get_required_var('YUPDATE_GIT');
assert_script_run("yupdate patch $repo $branch", timeout => 60);
}
Expand Down

0 comments on commit b8b30d3

Please sign in to comment.