Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2006 02:27:29 GMT
From:      soc-andrew <soc-andrew@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 110778 for review
Message-ID:  <200612010227.kB12RTan033911@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110778

Change 110778 by soc-andrew@soc-andrew_serv on 2006/12/01 02:27:20

	Add a target to build a tarball that, when extracted to the correct location, can be used to install by netbooting

Affected files ...

.. //depot/projects/soc2005/bsdinstaller/src/release/Makefile#56 edit

Differences ...

==== //depot/projects/soc2005/bsdinstaller/src/release/Makefile#56 (text+ko) ====

@@ -303,6 +303,7 @@
 BOOTABLE="-b"
 .endif
 .endif
+EXTRAS+= nfs.1
 
 .if !defined(NODOC)
 DOCREL= doc.1 doc.2
@@ -1199,6 +1200,22 @@
 	@echo "Do not know how to create an ISO for ${TARGET_ARCH}."
 .endif
 
+# Build a tarball that can be used to do a netboot based install
+nfs.1:
+.if defined(BSDINSTALLER)
+	@mkdir -p ${RD}/bsdinstaller/netboot
+	( tar --exclude CVS -cf - -C ${RD}/bsdinstaller/root . | \
+		tar xf - -C ${RD}/bsdinstaller/netboot )
+
+	# Add the dists
+	@mkdir -p ${RD}/bsdinstaller/netboot/${BUILDNAME}
+	@cd ${RD}/dists && find . -print | cpio -dumpl ${RD}/bsdinstaller/netboot/${BUILDNAME}
+
+	# Create a tarball of it
+	tar -cf ${RD}/bsdinstaller/netboot.tar -C ${RD}/bsdinstaller/netboot .
+.endif
+	touch ${.TARGET}
+
 #
 # --==## Documentation Project files such as the Handbook and FAQ ##==--
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612010227.kB12RTan033911>