Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2013 18:20:35 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        Amitabh Kant <amitabhkant@gmail.com>
Cc:        "Sam Fourman Jr." <sfourman@gmail.com>, Devin Teske <dteske@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Make Release
Message-ID:  <13CA24D6AB415D428143D44749F57D7201FFEFDE@ltcfiswmsgmb21>
In-Reply-To: <13CA24D6AB415D428143D44749F57D7201FFEEA3@ltcfiswmsgmb21>
References:  <CAOFF%2BZ3-b_ZUYeWjTY1XcEXse6DUv_FkbmBKDFJpE4zoSCf6_A@mail.gmail.com> <13CA24D6AB415D428143D44749F57D7201FFEB17@ltcfiswmsgmb21> <CAPTAQB%2BCGBxyfvMr9tFHMxm7UH4t6aWS-kJh6znqJT0pVKG-hQ@mail.gmail.com> <13CA24D6AB415D428143D44749F57D7201FFEEA3@ltcfiswmsgmb21>

next in thread | previous in thread | raw e-mail | index | archive | help

On Aug 1, 2013, at 10:58 AM, Teske, Devin wrote:

>=20
> On Aug 1, 2013, at 9:56 AM, Amitabh Kant wrote:
>=20
>> On Thu, Aug 1, 2013 at 10:13 PM, Teske, Devin <Devin.Teske@fisglobal.com=
> wrote:
>> I'm hoping that my very open development documentation on customizing th=
e release(7) process for producing DruidBSD releases can help you out here.
>>=20
>> I've documented much of the internals of the release(7) process (albeit,=
 relevant to the RELENG_8 release(7) Makefile; in RELENG_9 it's still relev=
ant to /usr/src/release/Makefile.sysinstall ... but I gather that much of t=
he knobs may still exist in HEAD).
>>=20
>> Have a read through this revision-controlled text file...
>>=20
>> http://druidbsd.cvs.sf.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/pa=
tches/README?revision=3D1.2&view=3Dmarkup
>>=20
>> ALSO NOTE: Yes, the file is dated... it talks about cvsup instead of svn=
. My hope is that the doco can be a good starting point (even if the data i=
s a bit dated).
>>=20
>> In there, you'll find things like (relevant to RELENG_9):
>>=20
>> make -f Makefile.sysinstall release \
>>                MAKE=3D"/usr/bin/env CFLAGS=3D-DDRUID make" \
>>                CHROOTDIR=3D/usr/release EXTSRCDIR=3D/usr/src KERNELS_BAS=
E=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
>>=20
>> Take special note of the "LOCAL_SCRIPT=3D" option.
>>=20
>> Maybe, just maybe, the bsdinstall-specific release(7) process supports L=
OCAL_SCRIPT too. If it doesn't... why not?
>> --
>> Devin
>>=20
>> Devin
>>=20
>> Do you have any idea if there have an changes to bsdinstall process (on =
scripting side) in the upcoming 9.2 ?=20
>>=20
>=20
> [snip]
> Beyond that... ( ok that's enough for this e-mail ).

More includes (for the advanced scripting -- again, tapping into what /usr/=
share/bsdconfig/script.subr provides), there are sub-directories in /usr/sh=
are/bsdconfig (but again, script.subr brings them all in):

media/ -- one file for each type of media (FTP, HTTP, HTTP Proxy, NFS, ... =
etc.)
networking/ -- scripts for getting, setting, and interactively modifying ne=
twork
packages/ -- package management
password/ -- root password
startup/ -- rc.conf(5) and startup services
timezone/ -- like tzsetup
usermgmt/ -- user management stuff

Each of those includes a lot of low-level functionality but it's all docume=
nted very well.

That being said... there's one more avenue of scripting.

All of the bsdconfig(8) modules that act as front-ends to the above librari=
es.

Those are in /usr/libexec/bsdconfig -- and you can call those from your bsd=
install ``/etc/installerconf'' too.

# Example A
/usr/libexec/bsdconfig/090.timezone/timezone

However, it's far easier to just say:

# Example B
bsdconfig timezone

For a list of keywords to the modules, say either:

bsdconfig -h

*or*

Peruse the diagram (which is generated by "bsdconfig dot"):

http://druidbsd.sourceforge.net/download/bsdconfig/bsdconfig-HEAD-20130506-=
3i.svg

The green parallelograms are the bsdconfig keywords, and the blue rectangle=
s represent the modules (mousing over it will show the /usr/libexec/bsdconf=
ig path in a tooltip).
--=20
Devin




> --=20
> Devin
>=20
> _____________
> The information contained in this message is proprietary and/or confident=
ial. If you are not the intended recipient, please: (i) delete the message =
and all copies; (ii) do not disclose, distribute or use the message in any =
manner; and (iii) notify the sender immediately. In addition, please be awa=
re that any message addressed to our domain is subject to archiving and rev=
iew by persons other than the intended recipient. Thank you.

_____________
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13CA24D6AB415D428143D44749F57D7201FFEFDE>