[Midnightbsd-cvs] src: Makefile: Remove firstboot script.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu May 22 16:27:34 EDT 2008


Log Message:
-----------
Remove firstboot script.  Create tarballs of /var, /usr/local/etc and /root so we can extract them onto the md device(s).

Modified Files:
--------------
    src/nrelease:
        Makefile (r1.3 -> r1.4)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/src/nrelease/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -L nrelease/Makefile -L nrelease/Makefile -u -r1.3 -r1.4
--- nrelease/Makefile
+++ nrelease/Makefile
@@ -42,6 +42,14 @@
 	mtree -deU -f ${.CURDIR}/../etc/mtree/BSD.var.dist -p ${ISOROOT}/var
 	cp /usr/local/bin/mkisofs ${ISOROOT}/usr/local/bin
 	cp /usr/local/man/man8/mkisofs.8.gz ${ISOROOT}/usr/local/man/man8
+	( cd ${ISOROOT}; tar czf var.tgz var )
+	( cd ${ISOROOT}; tar czf root.tgz root )
+	( cd ${ISOROOT}; tar czf ule.tgz usr/local/etc )
+	chflags -R noschg ${ISOROOT}/var
+	rm -rf ${ISOROOT}/var ${ISOROOT}/root ${ISOROOT}/usr/local/etc
+	mkdir ${ISOROOT}/var ${ISOROOT}/root ${ISOROOT}/usr/local/etc
+	# we don't want to offer an install option for X11, etc.
+	rm ${ISOROOT}/etc/rc.d/firstboot
 
 mkiso:
 	( cd ${ISOROOT}; mkisofs -b boot/cdboot -no-emul-boot \


More information about the Midnightbsd-cvs mailing list