From ead05d46b0309b819b2e8d96ca8544c72f4f9643 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 11 Sep 2024 20:06:21 +0200 Subject: [PATCH] test: add partitioning build configs One for each variant: - Plain - Plain + btrfs - Plain + lvm --- test/config-map.json | 24 +++++++++ test/configs/partitioning-btrfs.json | 55 +++++++++++++++++++++ test/configs/partitioning-lvm.json | 73 ++++++++++++++++++++++++++++ test/configs/partitioning-plain.json | 57 ++++++++++++++++++++++ 4 files changed, 209 insertions(+) create mode 100644 test/configs/partitioning-btrfs.json create mode 100644 test/configs/partitioning-lvm.json create mode 100644 test/configs/partitioning-plain.json diff --git a/test/config-map.json b/test/config-map.json index 1637edd9c8..fa828e32d8 100644 --- a/test/config-map.json +++ b/test/config-map.json @@ -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*" + ] } } diff --git a/test/configs/partitioning-btrfs.json b/test/configs/partitioning-btrfs.json new file mode 100644 index 0000000000..3f7079908a --- /dev/null +++ b/test/configs/partitioning-btrfs.json @@ -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" + } + ] + } + ] + } + } + } +} diff --git a/test/configs/partitioning-lvm.json b/test/configs/partitioning-lvm.json new file mode 100644 index 0000000000..960ec93550 --- /dev/null +++ b/test/configs/partitioning-lvm.json @@ -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 + } + ] + } + ] + } + } + } +} diff --git a/test/configs/partitioning-plain.json b/test/configs/partitioning-plain.json new file mode 100644 index 0000000000..6c2e06ae33 --- /dev/null +++ b/test/configs/partitioning-plain.json @@ -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 + } + ] + } + } + } +}