From e43757951cb680409ba0cfe6f0954d1c26c2026f Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 23 Oct 2021 16:16:23 +0000 Subject: Arithmetic is hard! Since MBR partition 0 is the only partition in the boot media MBR, just use '*' to take all the available space. ok visa@ deraadt@ --- distrib/octeon/ramdisk/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib/octeon/ramdisk') diff --git a/distrib/octeon/ramdisk/Makefile b/distrib/octeon/ramdisk/Makefile index adbc9a54841..16c0e22535c 100644 --- a/distrib/octeon/ramdisk/Makefile +++ b/distrib/octeon/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.18 2021/07/26 12:47:46 kn Exp $ +# $OpenBSD: Makefile,v 1.19 2021/10/23 16:16:22 krw Exp $ FS= miniroot${OSrev}.img FSSIZE= 24576 @@ -18,7 +18,7 @@ all: ${FS} ${FS}: bsd.rd dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE} vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd - echo 'u\ne 0\nC\nn\n64\n22528\nf 0\nw\nq\n' | fdisk -e `cat vnd` + echo 'u\ne 0\nC\nn\n64\n*\nf 0\nw\nq\n' | fdisk -e `cat vnd` echo 'w\ny\nq\n' | disklabel -E `cat vnd` > /dev/null newfs -t msdos /dev/r`cat vnd`i mount /dev/`cat vnd`i ${MOUNT_POINT} -- cgit v1.2.3