From owner-freebsd-questions@FreeBSD.ORG Thu Aug 1 16:43:49 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC12DEEC; Thu, 1 Aug 2013 16:43:49 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 727162E79; Thu, 1 Aug 2013 16:43:48 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id r71GhjYc032656 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 1 Aug 2013 11:43:45 -0500 Received: from LTCFISWMSGMB21.FNFIS.com ([10.132.99.23]) by LTCFISWMSGHT05.FNFIS.com ([10.132.206.16]) with mapi id 14.02.0309.002; Thu, 1 Aug 2013 11:43:44 -0500 From: "Teske, Devin" To: "Sam Fourman Jr." Subject: Re: Make Release Thread-Topic: Make Release Thread-Index: AQHOjtJECsxKvcvx/UeR7ZtcfRlfPpmA4r6A Date: Thu, 1 Aug 2013 16:43:43 +0000 Message-ID: <13CA24D6AB415D428143D44749F57D7201FFEB17@ltcfiswmsgmb21> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.126] Content-Type: text/plain; charset="us-ascii" Content-ID: <3558BE00DC73F044A1191FBAF767B9BC@fisglobal.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-08-01_07:2013-08-01,2013-08-01,1970-01-01 signatures=0 Cc: Devin Teske , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 16:43:49 -0000 On Aug 1, 2013, at 9:14 AM, Sam Fourman Jr. wrote: > one specific question I have, that I can't find in the handbook... > To make a FreeBSD release, that is to build the install images... you bui= ld > world, and kernel.. then go to /etc/src/release and type make release... > after this, the release images show up in /usr/obj/usr/src/release >=20 > What I WANT to know.. is what shell script or file can I edit, to modify > the install image BEFORE its created... for example say I wanted to add a > line to /etc/rc.conf on the memstick.img file that gets created >=20 > I understand that there may be better ways to accomplish this, but editing > /etc/rc.conf is ONLY a example, im trying to find a simple way to create a > "slightly" modified install media for my own internal purposes... > eg: ssh enabled and the ethernet card set to DHCP, so I can remote > install... I am aware of mfsBSD, as well as DruidBSD, however i'm looking > for something simple that I can script. > any help or thoughts is appreciated I'm hoping that my very open development documentation on customizing the r= elease(7) process for producing DruidBSD releases can help you out here. I've documented much of the internals of the release(7) process (albeit, re= levant to the RELENG_8 release(7) Makefile; in RELENG_9 it's still relevant= to /usr/src/release/Makefile.sysinstall ... but I gather that much of the = knobs may still exist in HEAD). Have a read through this revision-controlled text file... http://druidbsd.cvs.sf.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patch= es/README?revision=3D1.2&view=3Dmarkup ALSO NOTE: Yes, the file is dated... it talks about cvsup instead of svn. M= y hope is that the doco can be a good starting point (even if the data is a= bit dated). In there, you'll find things like (relevant to RELENG_9): make -f Makefile.sysinstall release \ MAKE=3D"/usr/bin/env CFLAGS=3D-DDRUID make" \ CHROOTDIR=3D/usr/release EXTSRCDIR=3D/usr/src KERNELS_BASE= =3D \ NODOC=3DYES NO_FLOPPIES=3DYES NOCDROM=3DYES NOPORTS=3DYES \ WORLD_FLAGS=3D-DWITHOUT_OPENSSL PATCH_FLAGS=3D-N \ LOCAL_PATCHES=3D/tmp/druid.patches \ LOCAL_SCRIPT=3D/tmp/local_script.sh |& tee release.log Take special note of the "LOCAL_SCRIPT=3D" option. Maybe, just maybe, the bsdinstall-specific release(7) process supports LOCA= L_SCRIPT too. If it doesn't... why not? --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.