Skip to content

Commit

Permalink
test: add partitioning build configs
Browse files Browse the repository at this point in the history
One for each variant:
- Plain
- Plain + btrfs
- Plain + lvm
  • Loading branch information
achilleas-k authored and mvo5 committed Nov 20, 2024
1 parent ff5d0dd commit ead05d4
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/config-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,29 @@
"rhel-9.5",
"rhel-10.0"
]
},
"./configs/partitioning-plain.json": {
"image-types": [
"ami"
],
"distros": [
"fedora*"
]
},
"./configs/partitioning-btrfs.json": {
"image-types": [
"ami"
],
"distros": [
"fedora*"
]
},
"./configs/partitioning-lvm.json": {
"image-types": [
"ami"
],
"distros": [
"fedora*"
]
}
}
55 changes: 55 additions & 0 deletions test/configs/partitioning-btrfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "partitioning-btrfs",
"blueprint": {
"customizations": {
"disk": {
"partitions": [
{
"type": "plain",
"mountpoint": "/data",
"minsize": 1073741824,
"fs_type": "xfs"
},
{
"type": "btrfs",
"minsize": "10 GiB",
"subvolumes": [
{
"name": "subvol-home",
"mountpoint": "/home"
},
{
"name": "subvol-shadowman",
"mountpoint": "/home/shadowman"
},
{
"name": "subvol-foo",
"mountpoint": "/foo"
},
{
"name": "subvol-usr",
"mountpoint": "/usr"
},
{
"name": "subvol-opt",
"mountpoint": "/opt"
},
{
"name": "subvol-media",
"mountpoint": "/media"
},
{
"name": "subvol-root",
"mountpoint": "/root"
},
{
"name": "subvol-srv",
"mountpoint": "/srv"
}
]
}
]
}
}
}
}
73 changes: 73 additions & 0 deletions test/configs/partitioning-lvm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "partitioning-lvm",
"blueprint": {
"customizations": {
"disk": {
"partitions": [
{
"mountpoint": "/data",
"minsize": "1 GiB",
"label": "data",
"fs_type": "ext4"
},
{
"type": "lvm",
"name": "testvg",
"minsize": 10737418240,
"logical_volumes": [
{
"name": "homelv",
"mountpoint": "/home",
"label": "home",
"fs_type": "ext4",
"minsize": "2 GiB"
},
{
"name": "shadowmanlv",
"mountpoint": "/home/shadowman",
"fs_type": "ext4",
"minsize": "5 GiB"
},
{
"name": "foolv",
"mountpoint": "/foo",
"fs_type": "ext4",
"minsize": "1 GiB"
},
{
"name": "usrlv",
"mountpoint": "/usr",
"fs_type": "ext4",
"minsize": "4 GiB"
},
{
"name": "optlv",
"mountpoint": "/opt",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"name": "medialv",
"mountpoint": "/media",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"name": "roothomelv",
"mountpoint": "/root",
"fs_type": "ext4",
"minsize": "1 GiB"
},
{
"name": "srvlv",
"mountpoint": "/srv",
"fs_type": "ext4",
"minsize": 1073741824
}
]
}
]
}
}
}
}
57 changes: 57 additions & 0 deletions test/configs/partitioning-plain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "partitioning-plain",
"blueprint": {
"customizations": {
"disk": {
"partitions": [
{
"mountpoint": "/data",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"mountpoint": "/home",
"label": "home",
"fs_type": "ext4",
"minsize": 2147483648
},
{
"mountpoint": "/home/shadowman",
"fs_type": "ext4",
"minsize": 524288000
},
{
"mountpoint": "/foo",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"mountpoint": "/var",
"fs_type": "xfs",
"minsize": 4294967296
},
{
"mountpoint": "/opt",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"mountpoint": "/media",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"mountpoint": "/root",
"fs_type": "ext4",
"minsize": 1073741824
},
{
"mountpoint": "/srv",
"fs_type": "xfs",
"minsize": 1073741824
}
]
}
}
}
}

0 comments on commit ead05d4

Please sign in to comment.