From d4d35ffaf86e1bfb2b151f26b548fc9d78cce7d1 Mon Sep 17 00:00:00 2001 From: allanjude Date: Tue, 10 May 2016 14:38:43 +0000 Subject: bsdinstall/zfsboot: Do not mirror swap when swapsize is 0 PR: 209415 Submitted by: Ganael LAPLANCHE MFC after: 2 weeks --- usr.sbin/bsdinstall/scripts/zfsboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bsdinstall') diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot index dc0eedc..6f6a3cf 100755 --- a/usr.sbin/bsdinstall/scripts/zfsboot +++ b/usr.sbin/bsdinstall/scripts/zfsboot @@ -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 -- cgit v1.1