diff options
author | seb <seb> | 2002-11-08 10:26:51 +0000 |
---|---|---|
committer | seb <seb> | 2002-11-08 10:26:51 +0000 |
commit | 9c8a049aa6476b3f08f45bf46f19a6c420d5395e (patch) | |
tree | 8d7b6c97bd96390115556c06fab6850a256a49fe /mk/bulk | |
parent | 1e0421f3bb557fc50a859be568d4a6e41f755234 (diff) | |
download | pkgsrc-9c8a049aa6476b3f08f45bf46f19a6c420d5395e.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/bulk')
-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 |