Re: About the usb img.

From: Giorgos Keramidas <keramida_at_ceid.upatras.gr>
Date: Thu, 17 Sep 2009 15:47:10 +0800
On Wed, 16 Sep 2009 20:04:09 +0200, Mel Flynn <mel.flynn+fbsd.current_at_mailing.thruhere.net> wrote:
> Hi,
> How is the USB img built? I find no mention of this in
> /usr/src/release and http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/release-build.html
> is rather stale.

Hi Mel,

You are right that the releng article needs a few updates.  You can see
the commands that builds the UFS miniroot image in `src/release/Makefile'
near line 1095:

   1086 #
   1087 # --==## Setup a suitable cdrom-area ##==--
   1088 #
   1089 cdrom.3:
   1090 .if defined(CD_BOOT)
   1091         _at_echo "Building bootonly CDROM filesystem image"
   1092         _at_mkdir -p ${CD_BOOT}
   1093         _at_cp -Rp ${CD_LIVEFS}/boot ${CD_BOOT}
   1094         _at_echo "CD_VERSION = ${BUILDNAME}" > ${CD_BOOT}/cdrom.inf
X  1095 .if defined(MINIROOT)
X  1096         _at_echo "Building bootonly UFS filesystem image"
X  1097         _at_mkdir -p ${FD}/miniroot
X  1098         _at_sh -e ${DOFS_SH} ${FD}/miniroot/miniroot.ufs \
X  1099             ${RD} ${MNT} 0 ${CD_BOOT} 8192 auto
X  1100         _at_${ZIPPER} -v ${FD}/miniroot/miniroot.ufs
X  1101 .endif
   1102 .endif
   1103         touch ${.TARGET}

The UFS miniroot is now built as part of the `cdrom.3' target, but it
may make sense to split it off to a target of its own if we want to make
it possible to build a UFS miniroot _without_ a CD-ROM ISO image.
Received on Thu Sep 17 2009 - 05:47:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:55 UTC