summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-07-20 15:25:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-07-20 15:25:49 +0000
commite6cd28688c5993907dc59f05ef870698db8ebc9a (patch)
treeaa8d3cb0a06c12230d255cf2409a2361c7f1a715 /distrib
parent3157a424e557a852707eaa5861994c5339bdbda9 (diff)
Use installboot -p such that the right partition will be newfs'ed.
ok krw@, deraadt@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/arm64/ramdisk/install.md7
1 files changed, 2 insertions, 5 deletions
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