From owner-freebsd-questions@FreeBSD.ORG Wed Dec 19 19:27:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DFCA7AA5; Wed, 19 Dec 2012 19:27:41 +0000 (UTC) (envelope-from amitabhkant@gmail.com) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx1.freebsd.org (Postfix) with ESMTP id A55A78FC13; Wed, 19 Dec 2012 19:27:41 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id rq13so1437263pbb.21 for ; Wed, 19 Dec 2012 11:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=6jYOVxGSViAqcab6CIAKs3f3cubCsmVxMDebpmPsbto=; b=V0eme9fjWFGvTMmYM6W0fDyl9bkPjS5PFaaFvA0Rks8WMz1wtfhlYgGDQo5eVs5MUI MvECXvWAG4m5L1kTas3Jpuj5yyqA3AOX8uK27QFvmqoXriTDFjnKihoROFQbAN/wTQB/ sTjzTInrB1sO935b5lnxpR1+w4vgSkz3OxCJWgEK0bYdYUws3PCTXntf4hV9A9d8JwSG oKlAqNsQrMgg4sxMBDfOlRU2M+6IdSjVcR7WfZur9Udo9i1jtoTb1A/2k+ylEsJyvAm1 z0ngQCEarUYdSOhsrWdzR0a4jPfjzm/Ndo/CeuB2zGTC9Tcikpi9eHPXhnO6+JDGU8xf KEiA== Received: by 10.66.90.1 with SMTP id bs1mr20220956pab.19.1355945261077; Wed, 19 Dec 2012 11:27:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.125.162 with HTTP; Wed, 19 Dec 2012 11:27:20 -0800 (PST) In-Reply-To: <7FFE45C4-2001-46CF-AAE3-D1DF7B6EC9DE@fisglobal.com> References: <40FD5C3B-CF8B-4376-BA6B-9F90747CFFAF@ramattack.net> <7FFE45C4-2001-46CF-AAE3-D1DF7B6EC9DE@fisglobal.com> From: Amitabh Kant Date: Thu, 20 Dec 2012 00:57:20 +0530 Message-ID: Subject: Re: about unattended installation To: Devin Teske Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Egoitz Aurrekoetxea Aurre , FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2012 19:27:41 -0000 On Thu, Dec 20, 2012 at 12:29 AM, Devin Teske wr= ote: > > On Dec 19, 2012, at 10:06 AM, Egoitz Aurrekoetxea Aurre wrote: > > > Good afternoon, > > > > One little question=85 I'm trying to have ready our new unattended Free= BSD > installation system. Until now, I have been using Sysinstall scripting fi= le > but now with 9.1 out I think it's moment to start using BSDInstaller in t= he > unattended installation process. > > Hold on a moment. You might want to wait until 9.2. (read more below) > > > > > I have seen the new installer, works basically like an script=85. my re= al > question is=85 before I did in install.cfg something like : > > > > ################################ > > disk=3Dda0 > > partition=3Dall > > bootManager=3Dstandard > > diskPartitionEditor > > > > ################################ > > > > da0s1-1=3Dufs 3072000 / > > da0s1-2=3Dswap 8096000 none > > da0s1-3=3Dufs 20485760 /var 1 > > da0s1-4=3Dufs 30720760 /usr 1 > > da0s1-5=3Dufs 0 /expert 1 > > diskLabelEditor > > > > ################################ > > > > Now I assume there's no way of getting this same through any command > like=85 'bsdinstall partedit _______________________' am I wrong??. > > You're correct. In 9.0 and 9.1, it's just not feasible to man-handle the > user interface (partedit) as one could sysinstall. (read below about 9.2) > > > > > So I assume all should be done by hand like this example of the Handboo= k > : > > > > # dd if=3D/dev/zero of=3D/dev/da1 bs=3D1k count=3D1 > > # fdisk -BI da1 #Initialize your new disk > > # bsdlabel -B -w da1s1 auto #Label it. > > # bsdlabel -e da1s1 # Edit the bsdlabel just created and add any > partitions. > > # mkdir -p /1 > > # newfs /dev/da1s1e # Repeat this for every partition you created. > > # mount /dev/da1s1e /1 # Mount the partition(s) > > # vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. > > > > In the auto script=85. > > > > am I wrong?. If the answer is yes=85 could you point me to some > documentation in order to be able to complete all this doc. > > The answer is (unfortunately) yes=85 that is until (hopefully) 9.2. > > It's an on-going significant amount of work to make add backward > compatibility (so bsdinstall can load sysinstall "install.cfg" files). I'= m > not going to discuss the specifics here or yet, but I'm actively working = on > it. > > No docs on how to mangle the auto script to do what you want (that I know > of). > > > > > Apart from all this=85 is Sysinstall going to be maintained in parallel= ?. > > > > Sysinstall is dead. The bsdinstall you know can be considered the "first > generation" and accordingly is a bit spartan. I'm working hard on the nex= t > generation. My plan is to have 10.0 with bsdinstall able to run sysinstal= l > scripts (for backward compatibility; can't yet say what 9.x release will = be > MFC'd to, but that could be 9.2). > > I'm planning one helluva BSDCan-2013 presentation. > -- > Devin > > Interesting Devin. I have played around with bsdinstall script files and partedit source files to certain extent. Was able to achieve a bit of success. One of the major stumbling blocks for me still is including custom scripts and packages. Just can't seem to understand where and how to place them, so that it is available to auto script for further processing. Amitabh