diff options
author | seb <seb@pkgsrc.org> | 2002-11-08 10:26:51 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2002-11-08 10:26:51 +0000 |
commit | ca66a9af3a74270883d37a244bdb660c77dd61e3 (patch) | |
tree | 8d7b6c97bd96390115556c06fab6850a256a49fe /mk | |
parent | 14056571ce621507d7a6d6f893c6ee5047e13ba4 (diff) | |
download | pkgsrc-ca66a9af3a74270883d37a244bdb660c77dd61e3.tar.gz |
Take care of -current's /lib and /libexec.
Noted by Julio Merino <jmmv at menta dot net> in PR pkg/18968, I had this
in my trees for weeks and I forgot about it...
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/bulk/mksandbox | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox index 4353f34c83b..05880f9b6c5 100755 --- a/mk/bulk/mksandbox +++ b/mk/bulk/mksandbox @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mksandbox,v 1.9 2002/08/22 08:21:30 jlam Exp $ +# $NetBSD: mksandbox,v 1.10 2002/11/08 10:26:51 seb Exp $ # # # Copyright (c) 2002 Alistair G. Crooks. All rights reserved. @@ -157,6 +157,12 @@ esac rm -f $sandbox/etc/localtime $cpprog /usr/share/zoneinfo/GMT $sandbox/etc/localtime +if [ -d /lib -a -d /libexec ]; then + extra_null_mounts="/lib /libexec" +else + extra_null_mounts= +fi + echo "Make empty dirs upon which to mount the null mounts" for d in /bin \ /sbin \ @@ -170,7 +176,7 @@ for d in /bin \ /usr/lkm \ /usr/share \ /usr/sbin \ - /var/mail; do \ + /var/mail $extra_null_mounts; do \ $mkdirprog $sandbox$d; \ $mountprog -r -t null $d $sandbox$d; \ echo "$d $d ro \\" >> $sandbox_script |