summaryrefslogtreecommitdiff
path: root/distrib/octeon/iso
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-02-06 15:52:24 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-02-06 15:52:24 +0000
commitedee880f6a30b5ca94165e56c4ce0dc01cbf2bb5 (patch)
tree1c54ad74b4570bb7b8291507c7ae2e18886f8899 /distrib/octeon/iso
parent28b6eb10cd46c44126db851d1e968cc1ea324726 (diff)
Use fdisk's -b to create boot partitions instead of -e scripts.
Build, boot and install tested by visa@ ok visa@
Diffstat (limited to 'distrib/octeon/iso')
-rw-r--r--distrib/octeon/iso/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/distrib/octeon/iso/Makefile b/distrib/octeon/iso/Makefile
index bc5f2e89840..3880b47e321 100644
--- a/distrib/octeon/iso/Makefile
+++ b/distrib/octeon/iso/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 2021/04/13 21:13:20 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 2022/02/06 15:52:23 krw Exp $
FS= install${OSrev}.img
FSSIZE= 832192
@@ -24,8 +24,7 @@ all: ${FS}
${FS}: ${BASE} ${XBASE}
dd if=/dev/zero of=${FS} bs=512 count=${TOTALSIZE}
vnconfig -v ${FS} > vnd
- echo 'u\ne 0\nc\nn\n${MSDOSSTART}\n${MSDOSSIZE}\ne 3\nA6\nn\n${FFSSTART}\n*\nf 0\nw\nq\n' \
- | fdisk -e `cat vnd` >/dev/null
+ fdisk -iy -b "${MSDOSSIZE}@${MSDOSSTART}:c" `cat vnd` >/dev/null
echo 'a a\n\n\n\nw\nq\n' | disklabel -E `cat vnd` >/dev/null
newfs -t msdos /dev/r`cat vnd`i
mount /dev/`cat vnd`i ${MOUNT_POINT}