From b1f9246dbec5297958bb3308345a9b65ec933d7f Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 9 Nov 2006 00:36:42 +0000 Subject: fdisk/disklabel jig to make the label come out right. --- distrib/landisk/miniroot/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'distrib/landisk/miniroot') diff --git a/distrib/landisk/miniroot/Makefile b/distrib/landisk/miniroot/Makefile index 25558284818..05117f230c6 100644 --- a/distrib/landisk/miniroot/Makefile +++ b/distrib/landisk/miniroot/Makefile @@ -12,7 +12,7 @@ VND_RDEV= /dev/r${VND}a VND_CRDEV= /dev/r${VND}c PID!= echo $$$$ -DISKTYPE= rdroot2.5M +DISKTYPE= miniroot2.5M #NBLKS= 8192 NBLKS= 5120 # minfree, opt, b/i trks, sects, cpg @@ -36,7 +36,9 @@ do_files: rd_setup: dd if=/dev/zero of=${IMAGE} bs=512 count=${NBLKS} vnconfig -v -c ${VND} ${IMAGE} - fdisk -i -u -y ${VND} + disklabel -w -r ${VND} ${DISKTYPE} + fdisk -i -y ${VND} + fdisk -u -f ${DESTDIR}/usr/mdec/mbr -y ${VND} disklabel -w -r ${VND} ${DISKTYPE} disklabel -v -B -b ${DESTDIR}/usr/mdec/xxboot ${VND} newfs ${NEWFSARGS} ${VND_RDEV} -- cgit v1.2.3