From owner-freebsd-questions@FreeBSD.ORG Fri Feb 29 21:40:27 2008 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 12912106568F for ; Fri, 29 Feb 2008 21:40:26 +0000 (UTC) (envelope-from jeff.gold@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 7B0118FC2A for ; Fri, 29 Feb 2008 21:40:26 +0000 (UTC) (envelope-from jeff.gold@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so2883153nfb.33 for ; Fri, 29 Feb 2008 13:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LUdQJqYD/B94TjReqyC0E6MlqRGnGEja1np2NyIFPZQ=; b=ud92dWe/lHHAdjXkES7WOmZsw81T0H/goPSiImKgHTNKVkyfu5jSIImKy3g951sXa86dBKrTFydgEK2u2sLhde1DJVEHLIAihgx0fw6CypjqHxiG4+suPvmFSnoVPer1uXWdov87Wm+ZifoITdf047rlcRZNWMdwE3hYUpVPrBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=i6HI7hDP9p2+AmRozoNB56CefgW+tDY4gFKMGiHeQfG3yjOD+mxZT5AyI1tZZOeJCml6SUosErBZcKAuB5PZ1iHrjxem0fJDZv3OaF/3EY4ph5oBcNcrjYM0/65UX6wqLofnLt/q4vmGNs0nVrn9qLO+2vk33XFRgMbjaBqM/yE= Received: by 10.78.165.16 with SMTP id n16mr10902269hue.59.1204321224813; Fri, 29 Feb 2008 13:40:24 -0800 (PST) Received: by 10.78.72.3 with HTTP; Fri, 29 Feb 2008 13:40:24 -0800 (PST) Message-ID: <4bded9640802291340i41669427la1172f948bbb60ad@mail.gmail.com> Date: Fri, 29 Feb 2008 16:40:24 -0500 From: "Jeff Gold" To: Mel In-Reply-To: <200802292220.56998.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4bded9640802150914x4c868f40ue0f21b8d8e163745@mail.gmail.com> <47C805B8.1040202@t-n-p.org> <4bded9640802291240r14c9b011t19f3734fb229853@mail.gmail.com> <200802292220.56998.fbsd.questions@rachie.is-a-geek.net> Cc: jedrek , freebsd-questions@freebsd.org Subject: Re: Scripting sysinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:40:31 -0000 On Fri, Feb 29, 2008 at 4:20 PM, Mel wrote: > Missing a few echo's there What's missing? This seems to work... > and better off for ease of editing in the future, > to use the cat </tmp/bsdlabel.conf syntax. It will expand variables: As you can see I use here documents in the rest of the script, but it doesn't work this time due to the (somewhat misnamed) "slice" function which permits specifying the size of partitions either in GiB or a percentage of the entire disk. Using backticks in a here document didn't work because the value of the "used" shell variable doesn't get updated. > Yea, probably: > ifconfig_${iface}="DHCP" > keyrate="fast" > sshd_enable="YES" I've also enabled a bunch of other things like usbd and moused in my working tree. What does keyrate="fast" do? Note that this script is not presented as advanced technology but rather a proof of concept for installing without intervention. There are many ways it could be improved but my hope is that the next person who wants to do this will find this thread in a web or list archive search and have a starting point to work with. Jeff