-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify existing scenario agama_auto_dolomite for selecting another in…
…stallation device
- Loading branch information
openQA web UI
committed
Sep 19, 2023
1 parent
c2b83ef
commit b394f00
Showing
4 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"software": { | ||
"product": "ALP-Dolomite" | ||
}, | ||
"user": { | ||
"fullName": "Bernhard M. Wiedemann", | ||
"password": "nots3cr3t", | ||
"userName": "bernhard" | ||
}, | ||
"root": { | ||
"password": "nots3cr3t" | ||
} | ||
} | ||
|
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,29 @@ | ||
local agama = import 'hw.libsonnet'; | ||
local findBiggestDisk(disks) = | ||
local sizedDisks = std.filter(function(d) std.objectHas(d, 'size'), disks); | ||
local sorted = std.sort(sizedDisks, function(x) -x.size); | ||
sorted[0].logicalname; | ||
|
||
{ | ||
software: { | ||
product: 'Tumbleweed', | ||
}, | ||
root: { | ||
password: 'nots3cr3t', | ||
}, | ||
user: { | ||
fullName: 'Bernhard M. Wiedemann', | ||
password: 'nots3cr3t', | ||
userName: 'bernhard', | ||
}, | ||
localization: { | ||
language: 'en_US', | ||
}, | ||
storage: { | ||
devices: [ | ||
{ | ||
name: findBiggestDisk(agama.disks), | ||
}, | ||
], | ||
}, | ||
} |
11 changes: 11 additions & 0 deletions
11
schedule/yam/agama_auto_tumbleweed_select_installation_device.yaml
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,11 @@ | ||
--- | ||
name: agama_auto_tumbleweed_select_installation_device | ||
description: > | ||
Prepare url for agama.auto boot parameter, boot, perform auto-installation with agama. | ||
schedule: | ||
- installation/bootloader_start | ||
- yam/agama/auto | ||
- console/validate_first_disk_selection | ||
- yam/validate/validate_product | ||
- yam/validate/validate_user | ||
- yam/validate/validate_apparmor |
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
--- | ||
os_release_name: openSUSE Tumbleweed | ||
guided_partitioning: | ||
disks: | ||
- vda | ||
unused_disks: | ||
- vdb |