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@
-# $OpenBSD: Makefile,v 1.3 2022/02/10 20:07:47 krw Exp $
+# $OpenBSD: Makefile,v 1.4 2023/02/10 15:54:33 krw Exp $
FS= install${OSrev}.img
FSSIZE= 1032192
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
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 ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
.for FILE in ${PIFILES}
-# $OpenBSD: Makefile,v 1.24 2022/02/10 20:07:47 krw Exp $
+# $OpenBSD: Makefile,v 1.25 2023/02/10 15:54:33 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 88064
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
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 ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
.for FILE in ${PIFILES}
-# $OpenBSD: Makefile.inc,v 1.29 2022/02/07 20:24:30 krw Exp $
+# $OpenBSD: Makefile.inc,v 1.30 2023/02/10 15:54:33 krw Exp $
FS= miniroot-${BOARD}-${OSrev}.img
FSSIZE= 71424 # ffs+msdos, actually
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v -t ${DISKTYPE} ${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 -O 1 -t msdos -L boot /dev/r`cat vnd`i
mount -o-l /dev/`cat vnd`i ${MOUNT_POINT}
-# $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
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
-# $OpenBSD: Makefile,v 1.5 2022/02/10 15:12:57 krw Exp $
+# $OpenBSD: Makefile,v 1.6 2023/02/10 15:54:33 krw Exp $
FS= install${OSrev}.img
FSSIZE= 1032192
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 ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
echo 'menuentry "OpenBSD install" {' > ${MOUNT_POINT}/grub.cfg
-# $OpenBSD: Makefile,v 1.4 2022/02/10 15:12:57 krw Exp $
+# $OpenBSD: Makefile,v 1.5 2023/02/10 15:54:33 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 67584
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 'a a\n\n\n\nw\nq\n' | disklabel -E `cat vnd` >/dev/null
+ echo '/ *' | disklabel -wAT- `cat vnd`
newfs -t msdos ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
cp bsd.rd ${MOUNT_POINT}/boot
-# $OpenBSD: Makefile,v 1.4 2022/02/04 18:12:47 krw Exp $
+# $OpenBSD: Makefile,v 1.5 2023/02/10 15:54:33 krw Exp $
FS= install${OSrev}.img
FSSIZE= 1032192
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
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 ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
mkdir -p ${MOUNT_POINT}/efi/boot
-# $OpenBSD: Makefile,v 1.5 2022/02/04 18:12:47 krw Exp $
+# $OpenBSD: Makefile,v 1.6 2023/02/10 15:54:33 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 67584
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 'a a\n\n\n\nw\nq\n' | disklabel -E `cat vnd` >/dev/null
+ echo '/ *' | disklabel -wAT- `cat vnd`
newfs -t msdos ${NEWFS_ARGS_msdos} /dev/r`cat vnd`i
mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
mkdir -p ${MOUNT_POINT}/efi/boot