From: krw Date: Sat, 23 Oct 2021 16:16:22 +0000 (+0000) Subject: Arithmetic is hard! Since MBR partition 0 is the only partition in the boot X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22eea8c9f272f58f0c20df6173fb73cd4db1ae95;p=openbsd 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@ --- 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}