Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2016 14:06:03 +0000
From:      Glen Barber <gjb@FreeBSD.org>
To:        Maxim Sobolev <sobomax@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: FreeBSD-11.0-BETA1-amd64-disc1.iso is too big for my 700MB CD-r
Message-ID:  <20160713140603.GI1520@FreeBSD.org>
In-Reply-To: <20160713135213.GH1520@FreeBSD.org>
References:  <op.ykgfddt2kndu52@eveline> <CAG6CVpW3rGEoqTcQodY%2BWVPVsTdxUd6OsB%2BzAq1k7Y-vUrdaSg@mail.gmail.com> <CAOtMX2gAwr_OPgy=FNYjc_wDKafV0DmXPMBxnGOdacctmdtgmw@mail.gmail.com> <20160711214144.GA7465@FreeBSD.org> <20160711214604.GG20831@zxy.spb.ru> <4a7eeee3c2737e9abcb6ba2557630d87@ultimatedns.net> <16f749e5-ca72-de79-651f-d50f9c42309e@freebsd.org> <7d0bd071cfbc78fcb9956e47f186e90b@ultimatedns.net> <CAH7qZfv7wrCK7xORCyP4x4wP0T_9BuhJiyoZ%2B0O-cwKfR7A=Qw@mail.gmail.com> <20160713135213.GH1520@FreeBSD.org>

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

--ev7mvGV+3JQuI2Eo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 13, 2016 at 01:52:13PM +0000, Glen Barber wrote:
> On Mon, Jul 11, 2016 at 05:23:32PM -0700, Maxim Sobolev wrote:
> > P.S. Just in case if somebody wants to integrate this method into FreeB=
SD
> > liveCD build, we do a bit of trick there by making normal ISO9660 file
> > system with compressed kernel and relevant boot pieces and then also
> > sticking in BSD label on the same disk image. It turns out ISO9660 and =
BSD
> > disklabel structures do not overlap, so it works nicely since 2005 or
> > so. Then we append UFS image compressed with mkuzip at the end of it.
> > Resulting image can be used just as any ISO would. We also cook up UFS =
with
> > unique label and then use GEOM_LABEL to easily find relevant file syste=
m on
> > boot regardless of the physical device name.
> >=20
> >   mkuzip -dL -S -s 65536 -o ${UZPFILE} ${UFSFILE}
> >   mkisofs -b boot/${CDBOOT} -no-emul-boot -r -o ${ISOFILE} ${CDIR}
> >   eval $(stat -s ${UZPFILE})
> >   UZPSIZE=3D$((st_size + 2048 - (st_size % 2048)))
> >   truncate -s ${UZPSIZE} ${UZPFILE}
> >   eval $(stat -s ${ISOFILE})
> >   ISOSIZE=3D${st_size}
> >   echo "bytes/sector:  2048"                                           =
 >
> > ${TDIR}/label.txt
> >   echo "sectors/unit:  $(((UZPSIZE + ISOSIZE) / 2048))"                =
>>
> > ${TDIR}/label.txt
> >   echo "a:             $((UZPSIZE / 2048)) $((ISOSIZE / 2048)) unused" =
>>
> > ${TDIR}/label.txt
> >   echo "c: $(((UZPSIZE + ISOSIZE) / 2048))                   0 unused" =
>>
> > ${TDIR}/label.txt
> >   truncate -s $((ISOSIZE + UZPSIZE)) ${ISOFILE}
> >   disklabel -A -R -f ${ISOFILE} ${TDIR}/label.txt
> >   truncate -s ${ISOSIZE} ${ISOFILE}
> >   cat ${UZPFILE} >> ${ISOFILE}
> >=20
>=20
> I'm very interested in implementing this, provided it solves the
> disc1.iso size issue.  Could you provide a bit explanation on what the
> variables above represent?  At the moment, I'm having trouble parsing
> the file paths and input/output paths.
>=20

For now, I think ignore my reply.  I think I now see what you're doing.

Glen


--ev7mvGV+3JQuI2Eo
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXhkrLAAoJEAMUWKVHj+KTM40QAJ2QWqcVsL0Cp1BYVcVEqyzq
ONAnizN8SDc4L9PuT1d+JMPuE/qw5c+yHudAiNJ2ufxJNjVyV1dZOllRAdrSIrXa
t5Ah+3RzH8EUUxRH8rDaxCC06vh7fMimvgCjA9qAbn7LoQIfHJoRwHPIzgkRjX/0
PfM8I1zaCFbLPiA3xabmHVg0CNjEUZb4yl6T3JQ396rQuadKg7L6J8PKB7MJyJ2a
M0I6C8O/dLlHqJUXi8Gb8P4WIkWop3BxL/8J3yWS3r8Aoa0wBq046D3212dD5DPP
YthdLXxdT6XlhStEsy2qc1iOVUTwx8x94aFzR2jBwkkL7mBXY5UmpAo82jBHvvD1
tBKA/l+RpyORLzfaJ4QcR0fIjAR2MJ+xSCHd35pcLvuqqeO6970as9dflGPws2vC
FEYuEP2T+xCvvsLG8xl4kK5RYJa6L4LnRQB7XuFfBxmm4BO0MBCzCAtv5Yn7q9Ca
RlHJmtgpbgFYu1aOGrdjUgepzHIk5wnV4UdYppXy2KDnSTO+fCbJEIeWF4mbHRcp
2BErtW1smnMbWs/OWUMB2hOJpj644o7KqFwuYMfolSELYjaKbJ//fIMvBUh3Q1tu
V5W9D0wVaMniU2EYU18qnPGYIiIOaixJ8WnawXUVEyyEUl3LK4P1jOWpRKCBieHX
ilcJpOH/Z7LB9Tc+0Uaq
=SdUo
-----END PGP SIGNATURE-----

--ev7mvGV+3JQuI2Eo--



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