Continue tests is the mountpoint already exists
authorkn <kn@openbsd.org>
Mon, 10 Oct 2022 11:06:14 +0000 (11:06 +0000)
committerkn <kn@openbsd.org>
Mon, 10 Oct 2022 11:06:14 +0000 (11:06 +0000)
regress should be resilient against partially cleaned obj/.

Feedback bluhm

regress/usr.sbin/installboot/Makefile

index 8d91ccb..0526146 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.33 2022/09/17 09:30:18 kn Exp $
+#      $OpenBSD: Makefile,v 1.34 2022/10/10 11:06:14 kn Exp $
 
 INSTALLBOOT ?=         /usr/sbin/installboot
 DRY_RUN =              ${INSTALLBOOT} -n
@@ -89,7 +89,7 @@ create-root: create-disks
 .endif
        ${SUDO} disklabel -Aw -- "$$(<${ROOTDEVFILE})"
        ${SUDO} newfs -q -- "$$(<${ROOTDEVFILE})"a 1>/dev/null
-       mkdir -- ${MOUNTPOINT}
+       mkdir -p -- ${MOUNTPOINT}
        ${SUDO} mount -- /dev/"$$(<${ROOTDEVFILE})"a ${MOUNTPOINT}
        ${SUDO} mkdir -- ${MOUNTPOINT}/usr
        ${SUDO} cp -r -- ${STAGEDIR} ${MOUNTPOINT}/usr/