values for the block/fragment sizes that some install media need.
Hoist the desired values into the newfs(8) invocations to make it
obvious non-default values are required and what the values are.
No functional change.
ok kn@
-# $OpenBSD: Makefile,v 1.23 2021/07/26 12:47:44 kn Exp $
+# $OpenBSD: Makefile,v 1.24 2023/04/26 14:42:27 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 5760
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v ${FS} > vnd
disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
+ newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 8192 -f 4096 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
install -c -m 555 -o root -g wheel \
${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
-# $OpenBSD: Makefile,v 1.32 2021/02/13 18:48:23 semarie Exp $
+# $OpenBSD: Makefile,v 1.33 2023/04/26 14:42:27 krw Exp $
FS= install${OSrev}.img
FSSIZE= 921600
vnconfig -v ${FS} > vnd
fdisk -yi -l ${FSSIZE} -f ${DESTDIR}/usr/mdec/mbr `cat vnd`
disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
+ newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 8192 -f 1024 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
objcopy -S -R .comment ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
-# $OpenBSD: Makefile,v 1.17 2023/04/26 13:01:02 krw Exp $
+# $OpenBSD: Makefile,v 1.18 2023/04/26 14:42:27 krw Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
vnconfig -v ${FS} > vnd
disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
+ newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 4096 -f 512 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
objcopy -S -R .comment ${DESTDIR}/usr/mdec/fdboot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
-# $OpenBSD: Makefile,v 1.28 2023/04/26 13:01:02 krw Exp $
+# $OpenBSD: Makefile,v 1.29 2023/04/26 14:42:27 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 8448
vnconfig -v ${FS} > vnd
fdisk -yi -l ${FSSIZE} -f ${DESTDIR}/usr/mdec/mbr `cat vnd`
disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
+ newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 8192 -f 1024 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
objcopy -S -R .comment ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/boot
installboot -v -r ${MOUNT_POINT} `cat vnd` \
-# $OpenBSD: Makefile,v 1.34 2021/07/26 12:47:45 kn Exp $
+# $OpenBSD: Makefile,v 1.35 2023/04/26 14:42:27 krw Exp $
FS= miniroot${OSrev}.img
FSSIZE= 5120
fdisk -i -y `cat vnd`
fdisk -u -y -f ${DESTDIR}/usr/mdec/mbr `cat vnd`
disklabel -w `cat vnd` ${FSDISKTYPE}
- newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} /dev/r`cat vnd`a
+ newfs -O 1 -m 0 -o space -i 524288 -c ${FSSIZE} -b 4096 -f 512 /dev/r`cat vnd`a
mount /dev/`cat vnd`a ${MOUNT_POINT}
installboot -vr ${MOUNT_POINT} `cat vnd` \
${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/usr/mdec/boot