kexec-tools/tests/scripts
Coiby Xu d347ad591f tests: correctly mount the root and also the boot partitions for Fedora 35, 36 and rawhide Cloud Base Image
Fedora 33 and 34 Cloud Base Images have only one partition with the
following directory structure,
.
├── bin -> usr/bin
├── boot
├── dev
├── etc
├── home
├── root

By comparison, Fedora 35, 36 and 37 Cloud Base Images have multiple
partitions. The root partition which is the last partition has the
following directory,
.
├── home
└── root
    ├── bin -> usr/bin
    ├── boot
    ├── dev
    ├── etc
    ├── home
    ├── root

and the 2nd partition is the boot partition.

This patch address the above changes by mounting {LAST_PARTITION}/root as
to TEMP_ROOT and mount SECOND_PARTITION to TEMP_ROOT/boot. So the test
image can be built successfully.

Signed-off-by: Coiby Xu <coxu@redhat.com>
Reviewed-by: Philipp Rudo <prudo@redhat.com>
2022-08-03 20:14:12 +08:00
..
build-scripts selftest: Fix bug of collecting test RPMs from argument 2021-03-24 15:50:41 +08:00
kexec-kdump-test selftest: ignore all spaces when compare the dmesg files 2021-06-08 22:21:47 +08:00
testcases selftest: Add early kdump test 2022-01-24 11:18:00 +08:00
build-image.sh selftest: Add basic infrastructure to build test image 2020-09-17 10:42:34 +08:00
copy-from-image.sh selftest: Show the path of dumped vmcore on test end 2020-09-17 10:43:02 +08:00
image-init-lib.sh tests: correctly mount the root and also the boot partitions for Fedora 35, 36 and rawhide Cloud Base Image 2022-08-03 20:14:12 +08:00
run-qemu selftest: replace qemu-kvm with one based on dracut's run-qemu 2021-03-24 15:51:02 +08:00
run-test.sh selftest: run-test.sh: wait for subprocess instead of kill it 2022-01-24 11:17:52 +08:00
spawn-image-shell.sh selftest: Add basic test framework 2020-09-17 10:42:54 +08:00
test-lib.sh selftest: kill VM reliably by recursively kill children processes 2021-10-15 19:20:25 +08:00