kiwi-el8/test/unit/bootloader/config
Marcus Schäfer 31e0ce96cd
Enhance scope of _fix_grub_root_device_reference
In addition to the wrong root=/dev/mapper/loop... reference
fixing, written by grub2-mkconfig when used in obs there is
also the case that grub2-mkconfig writes root=PARTUUID which
is also unwanted and needs fixing. To solve this properly
and also with respect to more unexpected grub2-mkconfig
data, the code changes to use a regular expression for the
root= replacement. The expression matches all root= cases which
we want to fixup:

1. If the local used root device appears in the grub config file.
2. If a linux by-id setting is used in the grub config file.

The replacement happens for overlayroot disk images where we
know grub2-mkconfig cannot handle the layout as well as if kiwi
runs in obs where we know grub2-mkconfig fails due to the absence
of udev.
2020-10-12 09:08:08 +02:00
..
__init__.py Re-structure unit tests folders 2019-10-21 14:00:05 +02:00
base_test.py Make oem be a superset of vmx 2020-09-16 12:56:14 +02:00
grub2_test.py Enhance scope of _fix_grub_root_device_reference 2020-10-12 09:08:08 +02:00
init_test.py Fix/Refactor s390 support 2020-09-30 17:14:30 +02:00
isolinux_test.py Refactor setup of bootloader parameters 2020-05-08 13:30:43 +02:00