From 2f81e05532f0a1910079b77bc91c65891a4e1263 Mon Sep 17 00:00:00 2001 From: kn Date: Mon, 5 Sep 2022 19:32:50 +0000 Subject: [PATCH] Use exact fdisk arguments from "(W)hole disk" answer Not all architectures did what the installer does with empty disks. --- regress/usr.sbin/installboot/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/regress/usr.sbin/installboot/Makefile b/regress/usr.sbin/installboot/Makefile index 07cc9981130..7a74b353337 100644 --- a/regress/usr.sbin/installboot/Makefile +++ b/regress/usr.sbin/installboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.19 2022/09/05 11:12:20 kn Exp $ +# $OpenBSD: Makefile,v 1.20 2022/09/05 19:32:50 kn Exp $ INSTALLBOOT ?= /usr/sbin/installboot DRY_RUN = ${INSTALLBOOT} -n @@ -14,23 +14,23 @@ FORMAT_DISK = fdisk -iy STAGENAMES = biosboot boot USE_SOFTRAID ?= Yes .elif ${MACHINE} == "arm64" -FORMAT_DISK = fdisk -g -y -b32768 +FORMAT_DISK = fdisk -iy -b '32768@32768:C' STAGENAMES = BOOTAA64.EFI USE_SOFTRAID ?= Yes .elif ${MACHINE} == "armv7" -FORMAT_DISK = fdisk -g -y -b32768@32768:C +FORMAT_DISK = fdisk -iy -b '32768@32768:C' STAGENAMES = BOOTARM.EFI USE_SOFTRAID ?= No .elif ${MACHINE} == "macppc" # assume MBR -FORMAT_DISK = fdisk -iy -b2048@1:06 +FORMAT_DISK = fdisk -iy -b '2048@1:06' STAGENAMES = ofwboot USE_SOFTRAID ?= No .elif ${MACHINE} == "powerpc64" -FORMAT_DISK = fdisk -iy -b32768@32768:C +FORMAT_DISK = fdisk -iy -b '32768@32768:C' STAGENAMES = boot USE_SOFTRAID ?= No .elif ${MACHINE} == "riscv64" -FORMAT_DISK = fdisk -g -y -b32768@32768:C +FORMAT_DISK = fdisk -iy -b '32768@32768:C' STAGENAMES = BOOTRISCV64.EFI USE_SOFTRAID ?= No .elif ${MACHINE} == "sparc64" -- 2.20.1