Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2012 14:02:03 -0500
From:      Rick Miller <vmiller@hostileadmin.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   make release and mfsroot
Message-ID:  <CAHzLAVHBfoodHoe72f9Ls_Wq1hnG8y-98DX7LkkZbs=79SjOdw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHzLAVHBfoodHoe72f9Ls_Wq1hnG8y-98DX7LkkZbs=79SjOdw>