About the usb img.

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Sep 17 07:47:20 UTC 2009


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         @echo "Building bootonly CDROM filesystem image"
   1092         @mkdir -p ${CD_BOOT}
   1093         @cp -Rp ${CD_LIVEFS}/boot ${CD_BOOT}
   1094         @echo "CD_VERSION = ${BUILDNAME}" > ${CD_BOOT}/cdrom.inf
X  1095 .if defined(MINIROOT)
X  1096         @echo "Building bootonly UFS filesystem image"
X  1097         @mkdir -p ${FD}/miniroot
X  1098         @sh -e ${DOFS_SH} ${FD}/miniroot/miniroot.ufs \
X  1099             ${RD} ${MNT} 0 ${CD_BOOT} 8192 auto
X  1100         @${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.



More information about the freebsd-current mailing list