Add some magic with ${SUNLABEL} into ${IMAGEPOSTBUILD} (after ${INSTALLBOOT}

runs) to ensure that boot.fs has a valid Sun disklabel.

Sparc boot floppies now boot.
This commit is contained in:
lukem 2002-12-21 13:01:20 +00:00
parent 8e62ab1c3f
commit 10d98f9c78
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2002/07/29 14:23:12 mrg Exp $ # $NetBSD: Makefile,v 1.38 2002/12/21 13:01:20 lukem Exp $
# #
# boot.fs is the image for disk 1 of the two-set floppy based installation # boot.fs is the image for disk 1 of the two-set floppy based installation
# method. # method.
@ -19,7 +19,10 @@ MTREECONF= ${DISTRIBDIR}/common/mtree.dot
IMAGEENDIAN= be IMAGEENDIAN= be
PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx
IMAGEDEPENDS= netbsd.ram.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT} IMAGEDEPENDS= netbsd.ram.gz ${DESTDIR}/usr/mdec/boot ${PRIMARYBOOT}
IMAGEPOSTBUILD= ${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot IMAGEPOSTBUILD= \
${INSTALLBOOT} -v -m ${MACHINE} ${IMAGE} ${PRIMARYBOOT} /boot && \
printf 'V nhead 2\nV pcyl 80\nV ncyl 80\nV nsect 18\na 0 80/0/0\nW\n' \
| ${SUNLABEL} -nq ${IMAGE}
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR} RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs RAMDISK= ${RAMDISKDIR}/ramdisk.fs