summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-09-11 15:05:28 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-09-11 15:05:28 +0000
commit2d8db7434dfbd4625dbb9297ea223060fcfdb94a (patch)
treebf2815d141acab42abd0a0c330e4c6082b84312b /distrib
parente808d895f0c57a101147f6426d7bf49383f3d084 (diff)
Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalent
'disklabel -dw'. Tested & ok visa@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/octeon/ramdisk/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/octeon/ramdisk/Makefile b/distrib/octeon/ramdisk/Makefile
index dd34c7165b1..25712eabba6 100644
--- a/distrib/octeon/ramdisk/Makefile
+++ b/distrib/octeon/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.21 2022/02/06 15:52:23 krw Exp $
+# $OpenBSD: Makefile,v 1.22 2022/09/11 15:05:27 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 24576
@@ -24,7 +24,7 @@ ${FS}: bsd.rd
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
fdisk -iy -b "${MSDOSSIZE}@${MSDOSSTART}:c" `cat vnd` >/dev/null
- echo 'w\ny\nq\n' | disklabel -E `cat vnd` > /dev/null
+ disklabel -wd `cat vnd` > /dev/null
newfs -t msdos /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
cp bsd.rd ${MOUNT_POINT}/bsd.rd