diff options
author | grant <grant> | 2004-01-20 01:01:56 +0000 |
---|---|---|
committer | grant <grant> | 2004-01-20 01:01:56 +0000 |
commit | f4a3674606cba0c0584d1abdaec03ed14cdee6a0 (patch) | |
tree | 2a48fb3b0960b4b1b4267d64ac3895ea7039eff8 | |
parent | 652e7b0bc1f04389f41e096d68338326dd81a7a1 (diff) | |
download | pkgsrc-f4a3674606cba0c0584d1abdaec03ed14cdee6a0.tar.gz |
on Linux, use --bind arg to mount(8) and call 'MAKEDEV generic' to
make the device files, as this is what Linux systems seem to use...
-rwxr-xr-x | mk/bulk/mksandbox | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox index 68e7d6ee8ba..a80c933ef02 100755 --- a/mk/bulk/mksandbox +++ b/mk/bulk/mksandbox @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mksandbox,v 1.25 2003/09/02 07:00:05 jlam Exp $ +# $NetBSD: mksandbox,v 1.26 2004/01/20 01:01:56 grant Exp $ # # # Copyright (c) 2002 Alistair G. Crooks. All rights reserved. @@ -70,7 +70,7 @@ Linux) gtarprog=/bin/tar idprog=/usr/bin/id mkdirprog="/bin/mkdir -p" - mountflags="-t null" + mountflags="--bind" mountprog=/sbin/mount paxprog="" sedprog=/bin/sed @@ -184,6 +184,10 @@ SunOS) /usr/ucb/ucblinks -r $sandbox fi ;; +Linux) + $cpprog /dev/MAKEDEV* $sandbox/dev + (cd $sandbox/dev; ./MAKEDEV generic) + ;; *) $cpprog /dev/MAKEDEV* $sandbox/dev (cd $sandbox/dev; ./MAKEDEV all) |