Skip to content

Commit ead05d4

Browse files
achilleas-kmvo5
authored andcommitted
test: add partitioning build configs
One for each variant: - Plain - Plain + btrfs - Plain + lvm
1 parent ff5d0dd commit ead05d4

4 files changed

Lines changed: 209 additions & 0 deletions

File tree

test/config-map.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,5 +331,29 @@
331331
"rhel-9.5",
332332
"rhel-10.0"
333333
]
334+
},
335+
"./configs/partitioning-plain.json": {
336+
"image-types": [
337+
"ami"
338+
],
339+
"distros": [
340+
"fedora*"
341+
]
342+
},
343+
"./configs/partitioning-btrfs.json": {
344+
"image-types": [
345+
"ami"
346+
],
347+
"distros": [
348+
"fedora*"
349+
]
350+
},
351+
"./configs/partitioning-lvm.json": {
352+
"image-types": [
353+
"ami"
354+
],
355+
"distros": [
356+
"fedora*"
357+
]
334358
}
335359
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "partitioning-btrfs",
3+
"blueprint": {
4+
"customizations": {
5+
"disk": {
6+
"partitions": [
7+
{
8+
"type": "plain",
9+
"mountpoint": "/data",
10+
"minsize": 1073741824,
11+
"fs_type": "xfs"
12+
},
13+
{
14+
"type": "btrfs",
15+
"minsize": "10 GiB",
16+
"subvolumes": [
17+
{
18+
"name": "subvol-home",
19+
"mountpoint": "/home"
20+
},
21+
{
22+
"name": "subvol-shadowman",
23+
"mountpoint": "/home/shadowman"
24+
},
25+
{
26+
"name": "subvol-foo",
27+
"mountpoint": "/foo"
28+
},
29+
{
30+
"name": "subvol-usr",
31+
"mountpoint": "/usr"
32+
},
33+
{
34+
"name": "subvol-opt",
35+
"mountpoint": "/opt"
36+
},
37+
{
38+
"name": "subvol-media",
39+
"mountpoint": "/media"
40+
},
41+
{
42+
"name": "subvol-root",
43+
"mountpoint": "/root"
44+
},
45+
{
46+
"name": "subvol-srv",
47+
"mountpoint": "/srv"
48+
}
49+
]
50+
}
51+
]
52+
}
53+
}
54+
}
55+
}

test/configs/partitioning-lvm.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"name": "partitioning-lvm",
3+
"blueprint": {
4+
"customizations": {
5+
"disk": {
6+
"partitions": [
7+
{
8+
"mountpoint": "/data",
9+
"minsize": "1 GiB",
10+
"label": "data",
11+
"fs_type": "ext4"
12+
},
13+
{
14+
"type": "lvm",
15+
"name": "testvg",
16+
"minsize": 10737418240,
17+
"logical_volumes": [
18+
{
19+
"name": "homelv",
20+
"mountpoint": "/home",
21+
"label": "home",
22+
"fs_type": "ext4",
23+
"minsize": "2 GiB"
24+
},
25+
{
26+
"name": "shadowmanlv",
27+
"mountpoint": "/home/shadowman",
28+
"fs_type": "ext4",
29+
"minsize": "5 GiB"
30+
},
31+
{
32+
"name": "foolv",
33+
"mountpoint": "/foo",
34+
"fs_type": "ext4",
35+
"minsize": "1 GiB"
36+
},
37+
{
38+
"name": "usrlv",
39+
"mountpoint": "/usr",
40+
"fs_type": "ext4",
41+
"minsize": "4 GiB"
42+
},
43+
{
44+
"name": "optlv",
45+
"mountpoint": "/opt",
46+
"fs_type": "ext4",
47+
"minsize": 1073741824
48+
},
49+
{
50+
"name": "medialv",
51+
"mountpoint": "/media",
52+
"fs_type": "ext4",
53+
"minsize": 1073741824
54+
},
55+
{
56+
"name": "roothomelv",
57+
"mountpoint": "/root",
58+
"fs_type": "ext4",
59+
"minsize": "1 GiB"
60+
},
61+
{
62+
"name": "srvlv",
63+
"mountpoint": "/srv",
64+
"fs_type": "ext4",
65+
"minsize": 1073741824
66+
}
67+
]
68+
}
69+
]
70+
}
71+
}
72+
}
73+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "partitioning-plain",
3+
"blueprint": {
4+
"customizations": {
5+
"disk": {
6+
"partitions": [
7+
{
8+
"mountpoint": "/data",
9+
"fs_type": "ext4",
10+
"minsize": 1073741824
11+
},
12+
{
13+
"mountpoint": "/home",
14+
"label": "home",
15+
"fs_type": "ext4",
16+
"minsize": 2147483648
17+
},
18+
{
19+
"mountpoint": "/home/shadowman",
20+
"fs_type": "ext4",
21+
"minsize": 524288000
22+
},
23+
{
24+
"mountpoint": "/foo",
25+
"fs_type": "ext4",
26+
"minsize": 1073741824
27+
},
28+
{
29+
"mountpoint": "/var",
30+
"fs_type": "xfs",
31+
"minsize": 4294967296
32+
},
33+
{
34+
"mountpoint": "/opt",
35+
"fs_type": "ext4",
36+
"minsize": 1073741824
37+
},
38+
{
39+
"mountpoint": "/media",
40+
"fs_type": "ext4",
41+
"minsize": 1073741824
42+
},
43+
{
44+
"mountpoint": "/root",
45+
"fs_type": "ext4",
46+
"minsize": 1073741824
47+
},
48+
{
49+
"mountpoint": "/srv",
50+
"fs_type": "xfs",
51+
"minsize": 1073741824
52+
}
53+
]
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)