From dfa8a8c7cd7e840ed239ff0edd78e2f44d9ff9bf Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 28 Apr 2016 14:17:28 -0700 Subject: [PATCH] jailsetup.sh: include local symlink in jail Include a symlink from local -> . in the chroot jail just in case any of the binaries/libraries being pulled in came from /usr/local/... and include hard-coded paths to libraries under /usr/local/... somewhere. Signed-off-by: Kyle J. McKay --- jailsetup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jailsetup.sh b/jailsetup.sh index eec5f81..0302c31 100755 --- a/jailsetup.sh +++ b/jailsetup.sh @@ -258,8 +258,9 @@ fi # First, setup basic platform-independent directory structure mkdir -p bin dev etc lib sbin var/empty var/run "$jailreporoot" chmod 0555 var/empty -rm -rf usr +rm -rf usr local ln -s . usr +ln -s . local # Now source the platform-specific script that is responsible for dev device # setup, proc setup (if needed), lib64 setup (if needed) and basic library -- 2.11.4.GIT