Skip to content

Commit

Permalink
Merge pull request #17719 from tinawang123/selectdev
Browse files Browse the repository at this point in the history
Modify existing scenario agama_auto_dolomite for selecting another installation device
  • Loading branch information
rakoenig committed Sep 28, 2023
2 parents e109702 + 055d5e6 commit 2c0368e
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/yam/agama/auto/alp_dolomite.json
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"
}
}

25 changes: 25 additions & 0 deletions data/yam/agama/auto/alp_tumbleweed.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: {
bootDevice: findBiggestDisk(agama.disks),
},
}
11 changes: 11 additions & 0 deletions schedule/yam/agama_auto_tumbleweed_select_installation_device.yaml
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
5 changes: 5 additions & 0 deletions test_data/yam/agama_auto_tumbleweed.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
---
os_release_name: openSUSE Tumbleweed
guided_partitioning:
disks:
- vdb
unused_disks:
- vda
7 changes: 7 additions & 0 deletions test_data/yam/agama_auto_tumbleweed_aarch64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
os_release_name: openSUSE Tumbleweed
guided_partitioning:
disks:
- vda
unused_disks:
- vdb

0 comments on commit 2c0368e

Please sign in to comment.