From owner-freebsd-sysinstall@freebsd.org Tue Jul 19 06:27:45 2016 Return-Path: Delivered-To: freebsd-sysinstall@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A2ECB9D0C7 for ; Tue, 19 Jul 2016 06:27:45 +0000 (UTC) (envelope-from kczekirda@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C41BD1596 for ; Tue, 19 Jul 2016 06:27:44 +0000 (UTC) (envelope-from kczekirda@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id q128so7763487wma.1 for ; Mon, 18 Jul 2016 23:27:44 -0700 (PDT) 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; bh=6P2KuGw2h+ajDHOD27xVhmsRF7VtQXcBZ9y+1umGuwI=; b=U5d04shgjDPyD4YK6wug21885F9Vv7mXO1ScEL7QWB/PtAB92CJpWKk3WvTkBqOhx6 zlft8PHitZ0CGkCGIazeoNHeTkxV5JzqjWhH/s8OgxnRATOF0T7LH+dbX4a5GY7UiU4l 547vZAin7br04uTb8tcrdDR1mlrIojYeVk58cEVlMM69Wj7IK80zl172Sg49G6VKMW5P LqMjJF4G74l5BERiX0Qs1TtOqs0Dv1GvqTuPjCJH6IvySFkVvaFamtHGHGgiiizC1mWY qRdC0fg0hageR/TFv+gyPPfHj3chhYbOtyzKGL8e13wE3MNvTiNWtbhB8tx0UcoB6su8 Mydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6P2KuGw2h+ajDHOD27xVhmsRF7VtQXcBZ9y+1umGuwI=; b=G8LK5saTWibG5h063YvcZ+R1F9rwpYfuLS7vzBZEHXqpIgK7uz+8PLke2a8soW/11w MIZkaSbrtAuZWAhfd0+oS624bffE2ryQDf5SNOqVZOOAI+D+lybUypeh0OObkCGB8jEe i7rAimNUsIUANUweqfbNyYmOXJLTuBfazDRW8wkiDSwe0mCV+qe/fiZaW9ptO56E20+k ccUS/fBa40afOuPfxyKyUwt17nNJGywnQ6WpUWYWmIVhFGhruseFoROhKHi142sUyApe uU8j+UNNZZzemQ3CwcilLx01YbjYYm59Aqn5KUdbm81Wek1XPBE0TW1e8kPmw8s0j6WX C94g== X-Gm-Message-State: ALyK8tJKawW3EG7GfHOcCJPbAU1rgwFn8WYORZztswRgHIXjNVzfSylxgpv1iA7WNA3xGF/bUfotTmIe/tUvFg== X-Received: by 10.28.113.20 with SMTP id m20mr1900359wmc.82.1468909663327; Mon, 18 Jul 2016 23:27:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.115.225 with HTTP; Mon, 18 Jul 2016 23:27:13 -0700 (PDT) In-Reply-To: <20160719020427.GA22537@admin.sibptus.transneft.ru> References: <20160718111523.GA15456@admin.sibptus.transneft.ru> <20160719020427.GA22537@admin.sibptus.transneft.ru> From: Kamil Czekirda Date: Tue, 19 Jul 2016 08:27:13 +0200 Message-ID: Subject: Re: Bsdinstall and unattended ZFS installation To: Victor Sudakov Cc: freebsd-sysinstall@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 06:27:45 -0000 Victor, I missed nonInteractive="YES" and export This works fine: ===================================== export nonInteractive="YES" DISTRIBUTIONS="kernel.txz base.txz games.txz" export ZFSBOOT_VDEV_TYPE="stripe" export ZFSBOOT_DISKS="ada0" export ZFSBOOT_SWAP_SIZE=2g export ZFSBOOT_CONFIRM_LAYOUT=1 ===================================== 2016-07-19 4:04 GMT+02:00 Victor Sudakov : > Kamil Czekirda wrote: > > Dear Victor, > > > > you should use something like: > > > > > ===================================== > > # by VAS > > DISTRIBUTIONS="kernel.txz base.txz games.txz" > > > > # Virtual Device (vdev) type to create, possible options: > > # stripe - no redundancy, > > # mirror - n-Way Mirroring, > > # raidz1, raidz2, raidz3 - single, double, triple redundant RAID > > # > > ZFSBOOT_VDEV_TYPE="stripe" > > > > ZFSBOOT_DISKS="md0" > > > > ZFSBOOT_SWAP_SIZE=2g > > > > ZFSBOOT_CONFIRM_LAYOUT=1 > > > > #!/bin/sh > > Dear Kamil, > > The script you provided goes interactive into the "ZFS Configuration" > dialogue. So technically it is not a working unattended script I am > looking for. > > I tried it on 10.3-RELEASE-p4. > > [dd] > > > # sed -i .bak 's/Components src world kernel/Components world kernel/' > > /etc/freebsd-update.conf # you don't need it since r284425 > > And what do you mean by the above BTW? > https://lists.freebsd.org/pipermail/svn-src-head/2015-June/073165.html Removing src component from Components lists is unnecessary, because freebsd-update can recognize that src is not installed. Kamil > > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > sip:sudakov@sibptus.tomsk.ru >