From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 22:13:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CD2F106566B for ; Thu, 13 Sep 2012 22:13:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3BB378FC12 for ; Thu, 13 Sep 2012 22:13:46 +0000 (UTC) Received: from r56.edvax.de (port-92-195-63-5.dynamic.qsc.de [92.195.63.5]) by mx01.qsc.de (Postfix) with ESMTP id 8926F3E3D8; Fri, 14 Sep 2012 00:13:39 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q8DMDdBL002109; Fri, 14 Sep 2012 00:13:39 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 14 Sep 2012 00:13:39 +0200 From: Polytropon To: Gardner Bell Message-Id: <20120914001339.8e63c7b9.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: NFS Install X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 22:13:46 -0000 On Thu, 13 Sep 2012 11:29:47 -0400, Gardner Bell wrote: > What I'm wanting to do is build/installworld from my workstation to a > remote machine but both have different /etc/src.conf and kernel > configuration files. Is there a way to define seperate files so I can > perform this upgrade without any errors? I assume that you run i386 _or_ amd64 on both systems. It's easy to copy the remote machine's /etc/src.conf to the system you're building on and to _temporarily_ replace the /etc/src.conf of that system. Also copy the kernel configuration file and put it into the correct location (/sys/i386/conf or /sys/amd64/conf). Make sure /usr/obj is empty. Then use the build and install parameter DESTDIR= and pay attention to other upgrading steps as listed in the comment header of /usr/src/Makefile. Also see The FreeBSD Handbook, section 25.7: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Rgarding /etc/rc.conf, I'm not aware of specifying a _different_ file name than the default one (i. e., what KERNCONF= does to override GENERIC), so maybe maybe dealing with a symlink in /etc/ would be the least painful way: src.conf -> src.conf.local (fits the machine you build on) _or_ -> src.conf.remote (fits the machine you build for). You could also create symlinks pointing to their location on the NFS file system (that the remote machine promotes to the build system): src.conf -> src.conf.local (fits the machine you build on) _or_ (now mounted via NFS) -> /mnt/remotehost/etc/src.conf (fits the machine you build for); and a similar symlink for /sys/i386/conf/REMOTE -> /mnt/remotehost/sys/i386/conf/MYKERNEL. I know that looks ugly, but it's the easies solution that currently occurs to my mind. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...