Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2014 06:56:44 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261960 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201402160656.s1G6uipp065848@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sun Feb 16 06:56:44 2014
New Revision: 261960
URL: http://svnweb.freebsd.org/changeset/base/261960

Log:
  Add zfsboot to the scripted interface of bsdinstall(8); oops!
  NB: If the zfsboot variables ($ZFSBOOT_*) are set, a script is
  assumed to want zfsboot module instead of scriptedpart module.
  
  Submitted by:	Loïc Brarda <loic.brarda@cern.ch>
  Reviewed by:	nwhitehorn@
  MFC after:	3 days

Modified:
  head/usr.sbin/bsdinstall/scripts/script

Modified: head/usr.sbin/bsdinstall/scripts/script
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/script	Sun Feb 16 04:11:40 2014	(r261959)
+++ head/usr.sbin/bsdinstall/scripts/script	Sun Feb 16 06:56:44 2014	(r261960)
@@ -95,7 +95,11 @@ fi
 # Make partitions
 rm -f $PATH_FSTAB
 touch $PATH_FSTAB
-bsdinstall scriptedpart "$PARTITIONS"
+if [ "$ZFSBOOT_DISKS" ]; then
+	bsdinstall zfsboot
+else
+	bsdinstall scriptedpart "$PARTITIONS"
+fi
 bsdinstall mount
 
 # Unpack distributions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402160656.s1G6uipp065848>