From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 21:56:53 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D22F116A41F for ; Fri, 9 Dec 2005 21:56:53 +0000 (GMT) (envelope-from paul.koch@statseeker.com) Received: from wally.statseeker.com (wally.statscout.com [203.39.101.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD29643D8A for ; Fri, 9 Dec 2005 21:56:36 +0000 (GMT) (envelope-from paul.koch@statseeker.com) Received: from localhost (localhost [127.0.0.1]) by wally.statseeker.com (8.13.3/8.13.3) with ESMTP id jB9LuBOV051881; Sat, 10 Dec 2005 07:56:11 +1000 (EST) (envelope-from paul.koch@statseeker.com) Received: from wally.statseeker.com ([127.0.0.1]) by localhost (wally.statseeker.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 50667-10; Sat, 10 Dec 2005 07:56:05 +1000 (EST) Received: from speedy (CPE-144-131-223-93.qld.bigpond.net.au [144.131.223.93]) (authenticated bits=0) by wally.statseeker.com (8.13.3/8.13.3) with ESMTP id jB9LtxX5051871 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Sat, 10 Dec 2005 07:56:00 +1000 (EST) (envelope-from paul.koch@statseeker.com) From: Paul Koch Organization: Statseeker To: freebsd-stable@freebsd.org Date: Sat, 10 Dec 2005 07:55:48 +1000 User-Agent: KMail/1.8 References: <4399A414.9040805@wincmd.ru> In-Reply-To: <4399A414.9040805@wincmd.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512100755.48985.paul.koch@statseeker.com> X-Virus-Scanned: amavisd-new at statseeker.com Cc: Tarasov Alexey Subject: Re: Automatic installation problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul.koch@statseeker.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 21:56:54 -0000 On Sat, 10 Dec 2005 01:34 am, Tarasov Alexey wrote: > Hello! > > I'm trying to make full automatical FreeBSD installation. I have the > > following lines in my install.cfg: > > command="echo sshd_enable="YES" >> /etc/rc.conf" > > system > > command="echo 'pass' | /usr/sbin/pw useradd -u user -h 0 -G wheel" > > system > > But during installation I get some error messages: > > DEBUG: dispatch: calling resword 'system' > > echo sshd_enable=YES >> /etc/rc.conf: not found > > I am using FreeBSD 6.0-RELEASE. Yep, something changed around 4.x in sysinstall where rc.conf is not created until near when it finishes. If you write to rc.conf during an scripted sysinstall, then it will be over written. You can write your stuff to /etc/rc.conf.local. It gets sourced in /etc/defaults/rc.conf. $ grep rc.conf /etc/defaults/rc.conf rc_conf_files="/etc/rc.conf /etc/rc.conf.local" After boot time, we have a post boot script which merges our stuff from rc.conf.local into rc.conf, just to keep it clean. Just to be safe, we quote everything in install.cfg. As in echo 'sshd_enable=YES' >> /etc/rc.conf.local Paul. -- Paul Koch CTO Statseeker