Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Debian guest detection more reliable
/etc/issue is far from being a reliable source for OS detection as it can be changed by a user without affecting any OS functionality. As newer Debian systems run systemd by default, check for /etc/os-release and fallback to lsb_release for older Debian versions. Check hashicorp#7625 for a similar issue. Even lsb_release is not manatory, therefore keep the current code of parsing /etc/issue to avoid regressions.
- Loading branch information