From owner-freebsd-questions Sat Jun 29 18:54:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1176337B400 for ; Sat, 29 Jun 2002 18:54:42 -0700 (PDT) Received: from mail022.syd.optusnet.com.au (mail022.syd.optusnet.com.au [210.49.20.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 110F343E31 for ; Sat, 29 Jun 2002 18:54:41 -0700 (PDT) (envelope-from gumby@mooh.org) Received: from pi.mooh.org (c18042.carlnfd1.nsw.optusnet.com.au [210.49.141.143]) by mail022.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g5U1sce01141 for ; Sun, 30 Jun 2002 11:54:39 +1000 Message-Id: <5.1.0.14.0.20020630113810.05affe98@pop.mooh.org> X-Sender: gumby@mooh.org@pop.mooh.org X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 30 Jun 2002 11:54:32 +1000 To: freebsd-questions@freebsd.org From: Yun Huang Yong Subject: installing kernel/world over NFS w/ amd Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hiyas, I have two boxes here - one is a P90 (fatso) and another is a Celeron 667 (balance). ()s indicate the machine names. I wish to build kernel & world on balance and then NFS mount /usr/src and /usr/obj over to fatso so that it can install kernel & world. I tried to setup amd on fatso to automount /usr/src and /usr/obj as required - so that I could just do "cd /usr/src; make installkernel KERNCONF=FATSO" and it would automount /usr/obj as required (coz I am lazy to mount both /usr/src and /usr/obj manually :). The NFS exports are setup correctly on balance - I can mount them manually, and amd can mount them too. I start amd using: amd -p -a /.amd_mnt -l syslog /net /etc/amd.map And my /etc/amd.map reads: /defaults type:=nfs;rhost:=balance usr.src rfs:=/usr/src;fs:=/usr/src usr.obj rfs:=/usr/obj;fs:=/usr/obj I then created these symlinks: /usr/src => /net/usr.src /usr/obj => /net/usr.obj which has the desired effect of touching /net/usr.src when /usr/src is needed, and similarly for /usr/obj, so that amd will automount these dirs. I then build the kernel for fatso on balance using: cd /usr/src; make buildkernel KERNCONF=FATSO Then my problem occurs when I do (on fatso): cd /usr/src; make installkernel KERNCONF=FATSO because of the symlinks /usr/src => /net/usr.src => /.amd_mnt/... where /.amd_mnt/... is the real mount point for balance:/usr/src. Somewhere in the installkernel process there is a call to get the CWD which returns the real mount point (ie /.amd_mnt/...) which then seems to be appended to /usr/obj so it starts looking for files in /usr/obj/.amd_mnt/... which doesn't exist. I guess normally this would be /usr/obj/usr/src/..., but because my /usr/src is really pointing to /.amd_mnt/... it ends up looking for /usr/obj/.amd_mnt/... instead. What's the solution to this? I can add fs:=/usr/src and fs:=/usr/obj to my /etc/amd.map entries so that they become real mount points but then I would have to touch /net/usr.src to mount /usr/src which loses me the ability to just cd /usr/src and make. Please CC me on replies, I am not subscribed to questions. Thanks in advance, yun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message