diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2023-02-10 15:54:34 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2023-02-10 15:54:34 +0000 |
commit | 05ea373e6aa6e3cf10b2114aaa604b02274e6a10 (patch) | |
tree | 30ec4570d49a143e98c1bdce0c29392ac92dc5f3 /distrib/octeon | |
parent | 001b12579f371214656dfbf3568903d3fad4ef49 (diff) |
Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.
Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.
It also eliminates the extraneous output of -E that required
">/dev/null".
ok kn@
Diffstat (limited to 'distrib/octeon')
-rw-r--r-- | distrib/octeon/iso/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/octeon/iso/Makefile b/distrib/octeon/iso/Makefile index 3880b47e321..13ed6d7ec75 100644 --- a/distrib/octeon/iso/Makefile +++ b/distrib/octeon/iso/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2022/02/06 15:52:23 krw Exp $ +# $OpenBSD: Makefile,v 1.3 2023/02/10 15:54:33 krw Exp $ FS= install${OSrev}.img FSSIZE= 832192 @@ -25,7 +25,7 @@ ${FS}: ${BASE} ${XBASE} dd if=/dev/zero of=${FS} bs=512 count=${TOTALSIZE} vnconfig -v ${FS} > vnd 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 + echo '/ *' | disklabel -wAT- `cat vnd` newfs -t msdos /dev/r`cat vnd`i mount /dev/`cat vnd`i ${MOUNT_POINT} cp ${RELDIR}/bsd.rd ${MOUNT_POINT}/bsd.rd |