diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-17 03:58:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-17 03:58:56 +0000 |
commit | e886d2ed5f458a1c669b7e01332cb294ae4cbdeb (patch) | |
tree | c2b4570421724d0f1f9b22228287ea4c64f5cb11 /distrib/hppa/ramdisk | |
parent | f4409ec46343690f2d8488e54a5731d75ae3a918 (diff) |
For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)
Diffstat (limited to 'distrib/hppa/ramdisk')
-rw-r--r-- | distrib/hppa/ramdisk/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/distrib/hppa/ramdisk/Makefile b/distrib/hppa/ramdisk/Makefile index 2fb2ceaa596..7f1354b2da9 100644 --- a/distrib/hppa/ramdisk/Makefile +++ b/distrib/hppa/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.16 2009/04/12 16:12:53 deraadt Exp $ +# $OpenBSD: Makefile,v 1.17 2009/04/17 03:58:54 deraadt Exp $ CBIN= instbin ARCHDIR= ${.CURDIR}/.. @@ -86,8 +86,9 @@ ${IMAGE}: ${CBIN} newfs ${NEWFSOPTS_RD} ${VND_RDEV} || ${NEWFS_WILL_FAIL} mount ${VND_DEV} ${MOUNT_POINT} mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u - REV=${REV} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} ARCHDIR=${ARCHDIR} \ - TARGDIR=${MOUNT_POINT} UTILS=${UTILS} sh ${UTILS}/runlist.sh ${LISTS} + REV=${REV} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ + ARCHDIR=${ARCHDIR} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \ + RELEASEDIR=${RELEASEDIR} sh ${UTILS}/runlist.sh ${LISTS} rm ${MOUNT_POINT}/${CBIN} @echo "" @df -i ${MOUNT_POINT} @@ -111,10 +112,10 @@ clean cleandir: /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \ ${CBIN}.conf *.o *.lo *.c obsd bsd bsd.* ${LIF} ${CDROM} +.ifdef RELEASEDIR beforeinstall: - cp bsd.rd ${DESTDIR}/snapshot - cp ${LIF} ${DESTDIR}/snapshot - cp ${CDROM} ${DESTDIR}/snapshot + cp bsd.rd ${LIF} ${CDROM} ${RELEASEDIR} +.endif unconfig: -umount -f ${MOUNT_POINT} |