From: kettenis Date: Tue, 20 Jul 2021 15:25:48 +0000 (+0000) Subject: Use installboot -p such that the right partition will be newfs'ed. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a6ffc2d30c4675a1ca2a08d88d74c92561948b4f;p=openbsd Use installboot -p such that the right partition will be newfs'ed. ok krw@, deraadt@ --- diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md index ffa603cafaf..62e43f3b2a2 100644 --- a/distrib/arm64/ramdisk/install.md +++ b/distrib/arm64/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.20 2021/06/25 17:27:07 krw Exp $ +# $OpenBSD: install.md,v 1.21 2021/07/20 15:25:48 kettenis Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -33,7 +33,6 @@ # NCPU=$(sysctl -n hw.ncpufound) -NEWFSARGS_msdos="-F 16 -L boot" MOUNT_ARGS_msdos="-o-l" md_installboot() { @@ -85,7 +84,6 @@ md_prep_fdisk() { local bootsectorsize="32768" local bootsectorend=$(($bootsectorstart + $bootsectorsize)) local bootfstype="msdos" - local newfs_args=${NEWFSARGS_msdos} while :; do _d=whole @@ -125,8 +123,7 @@ quit __EOT fi echo "done." - disklabel $_disk 2>/dev/null | grep -q "^ i:" || disklabel -w -d $_disk - newfs -t ${bootfstype} ${newfs_args} ${_disk}i + installboot -p $_disk return ;; [eE]*) if disk_has $_disk gpt; then