]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(UEFI): remove version check test for kernel-install
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 17 Jul 2025 12:03:41 +0000 (08:03 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 9 Aug 2025 11:20:23 +0000 (07:20 -0400)
The current way of checking the version of kernel-install is not
portable between distributions and it no longer adds any value to the CI.

Remove the version check to make it easier to reason about the
test run and enable this subtest in more test environments.

test/TEST-12-UEFI/test.sh

index 37bc4c44efd5294a5d9da7e3f3356179b98a6c7b..aaba9b998051e1931be4b897a95abfa6c10c6f88 100755 (executable)
@@ -54,14 +54,11 @@ test_setup() {
 
     mkdir -p "$TESTDIR"/ESP/EFI/BOOT "$TESTDIR"/dracut.conf.d
 
-    # This is the preferred way to build uki with dracut on a systenmd based system
-    # Currently this only works in a few distributions and architectures, but it is here
-    # for reference
+    # This is the preferred way to build uki with dracut on a systemd based system
     if command -v systemd-detect-virt &> /dev/null && systemd-detect-virt -c &> /dev/null \
         && command -v kernel-install &> /dev/null \
         && command -v systemctl &> /dev/null \
-        && command -v ukify &> /dev/null \
-        && [[ $(kernel-install --version | grep -oP '(?<=systemd )\d+') -gt 254 ]]; then
+        && command -v ukify &> /dev/null; then
 
         echo "Using ukify via kernel-install to create UKI"