From: kn Date: Thu, 1 Sep 2022 08:52:30 +0000 (+0000) Subject: Fix logic bug X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c7644b4b0a153ebf37a50060c679ac00b92caf5f;p=openbsd Fix logic bug USE_SOFTRAID=Yes means the softraid volume itself *does* need to be formatted. --- 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})"