Scripts for testing bootc installation onto a RAID 1 array with multiple ESP (EFI System Partition) partitions -- one per disk -- so that any disk can boot independently if another fails.
- podman
- qemu-system-x86_64, edk2-ovmf
- mdadm, dosfstools, e2fsprogs, util-linux
All scripts must be run as root.
sudo ./test-raid1-multi-esp.shThis builds a test container image (CentOS Stream 10 based by default), creates
3 loop-backed disk images in /var/tmp/, assembles a RAID 1 array, runs
bootc install to-existing-root, and verifies that every ESP received
bootloader files.
To use a different base image:
sudo ./test-raid1-multi-esp.sh quay.io/centos-bootc/centos-bootc:stream10sudo ./boot-vm.shThis launches a QEMU VM with all 3 disks attached. Log in and verify the system works. Press Ctrl-A X to exit the VM.
sudo ./boot-vm.sh --disk 1This boots the VM from only disk 1, simulating a disk failure. You can substitute any disk number from 1 to 3.
sudo ./cleanup.shTears down loop devices, stops the RAID array, and removes the disk images.