diff options
author | Brad Davis <brd@FreeBSD.org> | 2021-11-17 18:45:54 +0300 |
---|---|---|
committer | Brad Davis <brd@FreeBSD.org> | 2021-11-17 18:45:54 +0300 |
commit | 14fdf43a99fe4ea7e2dd69d0384e43c82ec92841 (patch) | |
tree | ba891168836c7ff7289977c8d8be01c04d79465b | |
parent | ae641ed4ff326fb338aff781506e4b06ead65bfc (diff) |
Fix thin jail creationfix-thin-jail-creation
Some jails are very thin and do not have /usr/include/sys populated,
which leads to this error on jail creation:
awk: can't open file /usr/local/poudriere/jails/testjail/usr/include/sys/param.h
source line number 1
So use the param.h from the src tree instead.
-rwxr-xr-x | src/share/poudriere/jail.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/poudriere/jail.sh b/src/share/poudriere/jail.sh index ba521246..2ec9518b 100755 --- a/src/share/poudriere/jail.sh +++ b/src/share/poudriere/jail.sh @@ -585,7 +585,7 @@ install_from_src() { # Use __FreeBSD_version as our version_extra setvar "${var_version_extra}" \ "$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $3}' \ - ${JAILMNT}/usr/include/sys/param.h)" + ${JAILMNT}/usr/src/sys/sys/param.h)" } install_from_vcs() { @@ -672,7 +672,7 @@ install_from_vcs() { # Use __FreeBSD_version as our version_extra setvar "${var_version_extra}" \ "$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $3}' \ - ${JAILMNT}/usr/include/sys/param.h)" + ${JAILMNT}/usr/src/sys/sys/param.h)" } install_from_ftp() { |