From c7644b4b0a153ebf37a50060c679ac00b92caf5f Mon Sep 17 00:00:00 2001 From: kn Date: Thu, 1 Sep 2022 08:52:30 +0000 Subject: [PATCH] Fix logic bug USE_SOFTRAID=Yes means the softraid volume itself *does* need to be formatted. --- regress/usr.sbin/installboot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.sbin/installboot/Makefile b/regress/usr.sbin/installboot/Makefile index 6e7aa033e3c..544075f5412 100644 --- a/regress/usr.sbin/installboot/Makefile +++ b/regress/usr.sbin/installboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.15 2022/09/01 01:09:19 kn Exp $ +# $OpenBSD: Makefile,v 1.16 2022/09/01 08:52:30 kn Exp $ INSTALLBOOT ?= /usr/sbin/installboot DRY_RUN = ${INSTALLBOOT} -n @@ -69,7 +69,7 @@ create-root: format-disks .endif format-root: create-root -.if ${USE_SOFTRAID:L} != "yes" +.if ${USE_SOFTRAID:L} == "yes" ${SUDO} ${FORMAT_DISK} -- "$$(<${ROOTDEVFILE})" 1>/dev/null .endif ${SUDO} disklabel -Aw -- "$$(<${ROOTDEVFILE})" -- 2.20.1