| Hi, Unfortunately lsb_release behavior changed between Linux Mint 19 and 20. On Linux Mint 19, lsb_release reads from /usr/lib/os-release, and then overrides that data with what it finds in /etc/lsb_release. The ID key in this case is LinuxMint (note the capitalization of the letters). On Linux Mint 20, the lsb_release command does not read from /etc/lsb_release, only from /usr/lib/os-release which has the ID set to linuxmint (lowercase). The script then prettifies the data so that when executing the lsb_release command you get Linuxmint. In facter, the OS identifier for Linux Mint is LinuxMint, not Linuxmint (relevant code), which causes this check to fail, and os::debian is always returned. The best way to fix this would be to do a case insensitive comparison of distro_id (which is Linuxmint) and os::linux_mint (which is LinuxMint) in os_linux.cc, so it will work on both older and newer versions. I'll open a PR for this. |