Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2016 14:38:43 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299366 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201605101438.u4AEchdU051725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Tue May 10 14:38:43 2016
New Revision: 299366
URL: https://svnweb.freebsd.org/changeset/base/299366

Log:
  bsdinstall/zfsboot: Do not mirror swap when swapsize is 0
  
  PR:		209415
  Submitted by:	Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com>
  MFC after:	2 weeks

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

Modified: head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot	Tue May 10 12:47:36 2016	(r299365)
+++ head/usr.sbin/bsdinstall/scripts/zfsboot	Tue May 10 14:38:43 2016	(r299366)
@@ -1233,7 +1233,7 @@ zfs_create_boot()
 	#
 	# Create the gmirror(8) GEOMS for swap
 	#
-	if [ "$ZFSBOOT_SWAP_MIRROR" ]; then
+	if [ ${swapsize:-0} -gt 0 -a "$ZFSBOOT_SWAP_MIRROR" ]; then
 		for disk in $disks; do
 			swap_devs="$swap_devs $disk$swappart"
 		done



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