Skip to content

Commit

Permalink
jail: Use the real path
Browse files Browse the repository at this point in the history
Depending on the installation type, the symbolic link may not be
present.
  • Loading branch information
jlduran committed Oct 16, 2024
1 parent ba0a428 commit 8a23936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/share/poudriere/jail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ list_jail() {
_jget method ${name} method
_jget mnt ${name} mnt
_jget timestamp ${name} timestamp || :
if [ -r "${mnt}/sys/sys/param.h" ]; then
osversion=$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $3}' "${mnt}/sys/sys/param.h")
if [ -r "${mnt}/usr/src/sys/sys/param.h" ]; then
osversion=$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $3}' "${mnt}/usr/src/sys/sys/param.h")
else
osversion=
fi
Expand Down

0 comments on commit 8a23936

Please sign in to comment.