From 10d98f9c7865ca24ef898fa88946a2069a3ef99b Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 21 Dec 2002 13:01:20 +0000 Subject: [PATCH] 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. --- distrib/sparc/bootfs/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/distrib/sparc/bootfs/Makefile b/distrib/sparc/bootfs/Makefile index a852dbe39852..47390c86e346 100644 --- a/distrib/sparc/bootfs/Makefile +++ b/distrib/sparc/bootfs/Makefile @@ -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 # method. @@ -19,7 +19,10 @@ MTREECONF= ${DISTRIBDIR}/common/mtree.dot IMAGEENDIAN= be PRIMARYBOOT= ${DESTDIR}/usr/mdec/bootxx 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} RAMDISK= ${RAMDISKDIR}/ramdisk.fs