Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
be less strict when figuring out major version in initrd
We only care for the major part of the version, so it's sufficient to grep without the dot, which is not present on CentOS initrd. CentOS Stream 8: VERSION="8 dracut-049-224.git20230330.el8" VERSION_ID=049-224.git20230330.el8 CentOS Stream 9: VERSION="9 dracut-057-38.git20230725.el9" VERSION_ID="9" RHEL 8.8: VERSION="8.8 (Ootpa) dracut-049-223.git20230119.el8" VERSION_ID=049-223.git20230119.el8 RHEL 9.2: VERSION="9.2 (Plow) dracut-057-21.git20230214.el9" VERSION_ID="9.2" Ideally, we would just use the major part of VERSION_ID, but this is set to the underlying OS'es VERSION_ID only since dracut 050 [1] and EL8 ships with 049. [1] dracutdevs/dracut@72ae1c4
- Loading branch information