summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-11-09 00:36:42 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-11-09 00:36:42 +0000
commitb1f9246dbec5297958bb3308345a9b65ec933d7f (patch)
tree18b02e77b7d885093834143551145b5e866263ea /distrib
parenta316d611782ca21d1688469ad3c9699c8f2636c8 (diff)
fdisk/disklabel jig to make the label come out right.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/landisk/miniroot/Makefile6
1 files changed, 4 insertions, 2 deletions
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}