Hi, I'm trying to use the os.release facter on a VM that is running
CloudLinux dracut.
/etc/os-release looks like this:
NAME="dracut" VERSION="8.7 (Valeri Polyakov)
dracut-049-223.git20230119.el8" ID=dracut
VERSION_ID=049-223.git20230119.el8 PRETTY_NAME="CloudLinux 8.7 (Valeri
Polyakov)
Hello,
The documentation for os-release
(https://www.freedesktop.org/software/systemd/man/os-release.html) only briefly
mentions major release, but indicates that VERSION_ID is where that should come
from.
Both Debian and AlmaLinux have sensible values for VERSION_ID:
VERSION_ID="11"