PERFORCE change 110778 for review

soc-andrew soc-andrew at FreeBSD.org
Thu Nov 30 18:27:30 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=110778

Change 110778 by soc-andrew at 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 ##==--
 #


More information about the p4-projects mailing list