-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Agama installation for full encryption: focus on booting
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Copyright 2024 SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
# Summary: Boot agama encryption. | ||
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de> | ||
|
||
use base Yam::Agama::agama_base; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
|
||
sub run { | ||
assert_screen("encrypted-disk-password-prompt", 200); | ||
save_screenshot; | ||
type_password(); | ||
save_screenshot; | ||
send_key "ret"; | ||
save_screenshot; | ||
assert_screen("grub2", 200); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Copyright 2024 SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
# Summary: First boot agama encryption after installation. | ||
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de> | ||
|
||
use base Yam::Agama::agama_base; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
|
||
sub run { | ||
assert_screen("enter-passphrase-cr-swap", 200); | ||
save_screenshot; | ||
type_password(); | ||
save_screenshot; | ||
send_key "ret"; | ||
save_screenshot; | ||
assert_screen("text-login", 200); | ||
enter_cmd("root"); | ||
# assert_screen "password-prompt"; | ||
type_password(); | ||
send_key('ret'); | ||
assert_screen "text-logged-in-root"; | ||
} | ||
|
||
1; |