From owner-freebsd-hackers Tue Sep 21 15:36:24 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from slarti.muc.de (slarti.muc.de [193.149.48.10]) by hub.freebsd.org (Postfix) with SMTP id 9C32A15093 for ; Tue, 21 Sep 1999 15:36:19 -0700 (PDT) (envelope-from jhs@jhs.muc.de) Received: (qmail 16427 invoked from network); 21 Sep 1999 22:37:37 -0000 Received: from jhs.muc.de (193.149.49.84) by slarti.muc.de with SMTP; 21 Sep 1999 22:37:37 -0000 Received: (from jhs@localhost) by jhs.muc.de (8.9.3/8.9.3) id WAA62084; Tue, 21 Sep 1999 22:35:41 GMT (envelope-from jhs) Date: Tue, 21 Sep 1999 22:35:41 GMT Message-Id: <199909212235.WAA62084@jhs.muc.de> To: hackers@freebsd.org Subject: How to get amd to use /sbin/mount_null for host=localhost ? From: "Julian Stacey" Reply-To: "Julian Stacey" Organization: Vector Systems Ltd - Unix & Internet consultancy X-Net: jhs@muc.de jhs@freebsd.org www.jhs.muc.de www.freebsd.org/~jhs/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I'm stuck trying to figure out an amd.map to invoke /sbin/mount_null by hand, (no problem with the normal nfs). I have a bunch of machines that use AMD to access one large pseudo-common tree containing, to give a simplified example: /usr/public/3.2/src --> /host/flip/usr/src obj ... ports ... packages etc ..... /usr/public/3.3/src --> /host/park/usr/src ..... Problem is sometimes when I'm already on EG host park, & a shell script descends into a tree it ends up automounting /a/park/usr/src which is pretty silly & inefficient as in this particular case, a straight /usr/src on park would do, (but the scripts are designed to run equally on all machines, so building in local host awareness is precisely what I do Not want to do). What I want is an /etc/amd.map that would achieve this (EG for host park): /host/park causes mount_null of park:/ on /a/park /host/wall causes mount_nfs of wall:/ on /a/wall /host/a.n.other.host causes mount_nfs of other.host:/ on /a/other.host:/ Please can someone suggest an appropriate amd.map syntax to me ? PS what I'm using now, that nfs mounts everything, even local host, is rc.conf: amd -p -k i386 -l syslog /host /etc/amd.map mad.map: /defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key} * opts:=rw,grpid,resvport,nfsv2,nosuid,nodev Julian H. Stacey http://www.freebsd.org/~jhs/ FreeBSD: Free system software with 2500 free packages, Linux compatible. British government wants to criminalise privacy via encryption: get your free encryption software from http://www.ifi.uio.no/pgp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message