From owner-freebsd-questions@FreeBSD.ORG Sat May 9 15:16:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE58C96F for ; Sat, 9 May 2015 15:16:36 +0000 (UTC) Received: from freesbee.wheel.dk (freesbee.wheel.dk [IPv6:2001:6c8:130::97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freesbee.wheel.dk", Issuer "RapidSSL SHA256 CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 90127119A for ; Sat, 9 May 2015 15:16:36 +0000 (UTC) Received: by freesbee.wheel.dk (Postfix, from userid 1023) id BE8E4174888; Sat, 9 May 2015 17:16:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wheel.dk; s=20131204; t=1431184585; bh=Loi3A3N/i5N+IHBNAp+jeQGCjDMqksQkRnudoTzPVy4=; h=Date:From:To:Subject; b=B3AvSYHJ8gE4gCpnM8e6IUhbv4Yy6rCWu6tfxf1X3Ovj8eqtuj+sR3CRidXGDe7gj DpcneyD8UOY+JDaRUxbsFLJF5UOVAxvOramXaE1/rgNslmdVeENj/Asc6qDrzRz1Ol SOQPo26lDbFtq3Yr6wirieJ6fQOjLjGuBGgUdfps0wRhZ1Q2VG10edhBUL8Dgd4dhx DG9Plp4sDYChyAoJsCQ+ejHbwPs8ICxuBzRICHmWXB0Mi2qr7wTWF4M5UwcVhMPfWf fzZTZrP3ytaHw2nfRdGW/vmSUs0aqnyb3dgbarDfvC+J3NMcj/y9FKHWItNRgPPHkF HfWxN6oYbv1CQ== Received: from localhost (localhost [127.0.0.1]) by freesbee.wheel.dk (Postfix) with ESMTP id BE3E0174894 for ; Sat, 9 May 2015 17:16:25 +0200 (CEST) Date: Sat, 9 May 2015 17:16:25 +0200 (CEST) From: Claus Andersen To: freebsd-questions@freebsd.org Subject: Unattended install using bsdinstall and ZFS Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2015 15:16:36 -0000 Hi, I cannot wrap my head around this: Am able to do an unattended install using bsdinstall and UFS on 10.1. But I cannot get ZFS to work unattended. If I set the variables concerning ZFS in the install script they do not seem to get picked up. If I set them on the command line using export before I execute the script it only picks up on ZFSBOOT_* but seems to ignore ZFSINTERACTIVE and ZFS_CONFIRM_LAYOUT This almost works: # ZFSBOOT_DISKS="da0 da1" # ZFSBOOT_VDEV_TYPE="mirror" # ZFSBOOT_CONFIRM_LAYOUT=0 # export ZFSBOOT_DISKS ZFSBOOT_VDEV_TYPE ZFSBOOT_CONFIRM_LAYOUT # bsdinstall script install.txt But this still gives me the menu "ZFS Configuration". In the menu I can see that it has picked up ZFSBOOT_DISKS and ZFSBOOT_VDEV_TYPE. The minimal "install.txt" contains: DISTRIBUTIONS="kernel.txz base.txz" RELEASE="10.1" ZFSINTERACTIVE="NO" #!/bin/sh echo "Installation complete, running in host system" It seems to ignore ZFSINTERACTIVE. I have tried with 0, "0", "false", "False", "FALSE". And I have tried going the export route. I would rather use whatever bsdinstall makes available so I can retire my current range of DIY scripts. What is the correct(TM) way of doing unattended install using bsdinstall and ZFS? Google and the man page was not enough for me - I need a real human being! Kind Regards, Claus Andersen