make release and mfsroot

Rick Miller vmiller at hostileadmin.com
Tue Dec 11 19:02:05 UTC 2012


Hi All,

I generate a bootonly ISO and want to add files to the mfsroot.gz
created by the release.8 target.  I want sysinstall to load an
install.cfg which makes a call to doconfig.sh.  The target destination
for the files is stand/.  My question is will the below patch
accomplish this for me provided install.cfg and doconfig.sh exist in
/usr/src/release?

# diff -u Makefile.orig Makefile
--- Makefile.orig	2012-12-11 18:15:29.000000000 +0000
+++ Makefile	2012-12-11 19:01:46.000000000 +0000
@@ -509,6 +509,7 @@
 		rm foo; \
 	fi
 	-test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release
+	-test -f doconfig.sh && cp doconfig.sh ${CHROOTDIR}/usr/src/release
 	echo "#!/bin/sh"			> ${_MK}
 	echo "set -ex"				>> ${_MK}
 	echo "trap 'umount /dev || true' 0"	>> ${_MK}
@@ -823,7 +824,9 @@
 	done
 .endif
 	-test -f ${.CURDIR}/install.cfg \
-	    && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
+	    && cp ${.CURDIR}/install.cfg ${RD}/mfsfd/stand
+	-test -f ${.CURDIR}/doconfig.sh \
+	    && cp ${.CURDIR}/doconfig.sh ${RD}/mfsfd/stand
 	@mkdir -p ${RD}/mfsfd/boot
 .if ${TARGET_ARCH} != "ia64" && ${TARGET_ARCH} != "powerpc"
 	@cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot


-- 
Take care
Rick Miller


More information about the freebsd-questions mailing list