pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk on Linux, use --bind arg to mount(8) and call ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c0c012b1a42
branches:  trunk
changeset: 466508:5c0c012b1a42
user:      grant <grant%pkgsrc.org@localhost>
date:      Tue Jan 20 01:01:56 2004 +0000

description:
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...

diffstat:

 mk/bulk/mksandbox |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r d49af5a80a86 -r 5c0c012b1a42 mk/bulk/mksandbox
--- a/mk/bulk/mksandbox Mon Jan 19 23:50:20 2004 +0000
+++ b/mk/bulk/mksandbox Tue Jan 20 01:01:56 2004 +0000
@@ -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 @@
        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 @@
                /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)



Home | Main Index | Thread Index | Old Index