From 645734c62959c694597826598be3b34c0edc79d2 Mon Sep 17 00:00:00 2001 From: Evilham Date: Sat, 12 Dec 2020 12:15:17 +0100 Subject: [PATCH] [explorer/os_version] Improve FreeBSD support. It looks like uname -r is not the most reliable way to get the target patch level for the target system. For more information see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251743 --- cdist/conf/explorer/os_version | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cdist/conf/explorer/os_version b/cdist/conf/explorer/os_version index a7b1d3bc..3b02dedd 100755 --- a/cdist/conf/explorer/os_version +++ b/cdist/conf/explorer/os_version @@ -70,6 +70,11 @@ case "$("$__explorer/os")" in macosx) sw_vers -productVersion ;; + freebsd) + # Apparently uname -r is not a reliable way to get the patch level. + # See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251743 + freebsd-version + ;; *bsd|solaris) uname -r ;;