Introduce new CPE platform for bootable containers
This commit adds a new CPE platform bootc.
Matches:
- bootc (RHEL Image Mode) containers and container images
- running bootc (RHEL Image Mode) systems
Does not match:
- classic containers and container images
- normal bare-metal systems or VMs
The matching platforms and non-matching platforms can be easily distinguished by checking for presence of the kernel and rpm-ostree RPM packages. Bootable containers and running bootc systems both contain both these packages. Normal bare-metal systems usually don't have the rpm-ostree, normal containers don't contain kernel.
Start a new ephemeral environment with changes proposed in this pull request:
I have rebased this PR on the top of the latest upstream master branch. I have extended the check to not match other immutable platforms and I have fixed the OVAL test IDs.
Code Climate has analyzed commit 1849ef6b and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 60.9% (0.0% change).
View more on Code Climate.