Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/distrib/sparc/bootfs Pull up revision 1.38 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/2000fbc28a31
branches:  netbsd-1-6
changeset: 529830:2000fbc28a31
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Dec 26 07:56:42 2002 +0000

description:
Pull up revision 1.38 (requested by lukem in ticket #1044):
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.

diffstat:

 distrib/sparc/bootfs/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 54c4156d46bf -r 2000fbc28a31 distrib/sparc/bootfs/Makefile
--- a/distrib/sparc/bootfs/Makefile     Thu Dec 26 07:54:02 2002 +0000
+++ b/distrib/sparc/bootfs/Makefile     Thu Dec 26 07:56:42 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.36 2002/05/14 06:21:21 lukem Exp $
+#      $NetBSD: Makefile,v 1.36.2.1 2002/12/26 07:56:42 tron Exp $
 #
 # boot.fs is the image for disk 1 of the two-set floppy based installation
 # method.
@@ -19,7 +19,10 @@
 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



Home | Main Index | Thread Index | Old Index