Skip to content

Instantly share code, notes, and snippets.

@jperkin
Created February 14, 2017 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jperkin/7946cc8cf810cbca709f8bbf7eb1af68 to your computer and use it in GitHub Desktop.
Save jperkin/7946cc8cf810cbca709f8bbf7eb1af68 to your computer and use it in GitHub Desktop.
diff --git a/scripts/mksandbox-pkgsrc b/scripts/mksandbox-pkgsrc
index 9a40c22..65512e9 100755
--- a/scripts/mksandbox-pkgsrc
+++ b/scripts/mksandbox-pkgsrc
@@ -107,7 +107,7 @@ Linux)
bmakeprog=bmake
chmodprog=/bin/chmod
chownprog=/bin/chown
- cpprog=/bin/cp
+ cpprog="/bin/cp -P"
gtarprog=/bin/tar
idprog=/usr/bin/id
mkdirprog="/bin/mkdir -p"
@@ -295,6 +295,10 @@ esac
echo "Make empty dirs upon which to mount the null mounts"
for d in $sandboxMountDirs; do
+ if [ -L $d ]; then
+ $cpprog $d $sandbox$d
+ continue
+ fi
test -d $d || continue;
case $d in
*X11*) test "$with_x" = "yes" || continue ;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment