Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 12:42:49 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Scott Long <scottl@freebsd.org>
Cc:        Wilko Bulte <wilko@freebsd.org>
Subject:   miniboot.iso (was: Re: Floppies for ALPHA)
Message-ID:  <20030731094249.GB8699@sunbay.com>
In-Reply-To: <3F26CBC1.7030704@freebsd.org>
References:  <200307211915.h6LJFPJY054212@repoman.freebsd.org> <20030721214042.GA563@freebie.xs4all.nl> <3F1C6216.3020006@freebsd.org> <20030721220419.GA909@freebie.xs4all.nl> <3F1C6633.5070009@freebsd.org> <20030722070239.GA2687@freebie.xs4all.nl> <20030729191917.GA66399@sunbay.com> <3F26CBC1.7030704@freebsd.org>

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

--5G06lTa6Jq83wMTw
Content-Type: multipart/mixed; boundary="Bn2rw/3z4jIqBvZU"
Content-Disposition: inline


--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 29, 2003 at 01:32:17PM -0600, Scott Long wrote:
> Ruslan Ermilov wrote:
> > If there's some interest, I could add the support for generating
> > miniboot.iso to release/Makefile.  This would be extremely
> > useful for other platforms too, including i386.  Just let me
> > know if there's a strong interest in this.
> >=20
> >=20
> > Cheers,
>=20
> This idea has intrigued me for a while.  Feel free to prototype
> something!
>=20
OK, the attached (trivial) patch can be used to create the
miniboot.iso.  Its contents is identical to what goes on the
miniinst.iso, except for NOT putting any distributions, docs,
and ports.

The uncompressed size for i386 is 46M, bzip2(1) compressed size
is 16M, which I think many people can afford.  (The size of the
miniinst.iso image is 231M.)

Removing *.ko and kernel.debug from /boot/kernel gives 7M of
uncompressed, and 3M of compressed miniboot.iso image.  The
patch does not remove them currently, adding one line would
do it.  Anyone has a reason why these should not be removed?
One could think that the acpi.ko may be needed for IA64, but
it's already part of the GENERIC kernel.

The numbers for other arches should be identical, according to
these stats:

ftp> dir */ISO-IMAGES/5.1/*-miniinst.iso
150 Opening ASCII mode data connection for directory listing.
-rw-rw-r--   1 110      root     248053760 Jun  6 23:57 5.1-RELEASE-alpha-m=
iniinst.iso
-rw-r--r--   1 110      root     221773824 Jun  8 19:06 5.1-RELEASE-amd64-m=
iniinst.iso
-rw-rw-r--   1 110      root     249331712 Jun  5 16:49 5.1-RELEASE-i386-mi=
niinst.iso
-rw-rw-r--   1 110      root     229408768 Jun  7 01:01 5.1-RELEASE-sparc64=
-miniinst.iso
226 Transfer complete.

Jake, a question for you: can this miniboot.iso image be used on
sparc64 like on Alpha (as Wilko demonstrated) instead of the ugly
boot.flp image?  If so, we could remove the floppy creation code
for sparc64 as well.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=p
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.808
diff -u -r1.808 Makefile
--- Makefile	31 Jul 2003 07:28:58 -0000	1.808
+++ Makefile	31 Jul 2003 09:09:25 -0000
@@ -242,6 +242,7 @@
 CD=3D			${_R}/cdrom
 CD_DISC1=3D		${CD}/disc1
 CD_DISC2=3D		${CD}/disc2
+CD_BOOT=3D		${CD}/boot
=20
 # Where the bootstrap ports (see DOCPORTS) get installed.
 LOCALDIR=3D		/usr/local/bin
@@ -837,8 +838,9 @@
 #
 cdrom.1:
 	@echo "Setting up CDROM distribution area"
-	@mkdir -p ${CD_DISC1} ${CD_DISC2}
+	@mkdir -p ${CD_DISC1} ${CD_DISC2} ${CD_BOOT}
 	-@ln -s . ${CD_DISC1}/${BUILDNAME}
+	-@ln -s . ${CD_BOOT}/${BUILDNAME}
 .if !defined(NO_FLOPPIES)
 	@cd ${RD} && find floppies -print | cpio -dumpl ${CD_DISC1}
 .endif
@@ -855,6 +857,7 @@
 	@cp ${.CURDIR}/fixit.profile ${CD_DISC2}/.profile
 	@echo "CD_VERSION =3D ${BUILDNAME}" > ${CD_DISC1}/cdrom.inf
 	@echo "CD_VERSION =3D ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
+	@echo "CD_VERSION =3D ${BUILDNAME}" > ${CD_BOOT}/cdrom.inf
 .if !defined(NODOC)
 	@for i in ${DIST_DOCS_ARCH_INDEP}; do \
 	  cp ${RND}/${RELNOTES_LANG}/$$i/article.txt ${CD_DISC1}/`echo $${i} | tr=
 'a-z' 'A-Z'`.TXT; \
@@ -878,11 +881,13 @@
 	@echo 'mfsroot_type=3D"mfs_root"' >> ${CD_DISC2}/boot/loader.conf
 	@echo 'mfsroot_name=3D"/boot/mfsroot"' >> ${CD_DISC2}/boot/loader.conf
 	@cp -Rp ${CD_DISC2}/boot ${CD_DISC1}
+	@cp -Rp ${CD_DISC1}/boot ${CD_BOOT}
 .endif
 .if ${TARGET} =3D=3D "i386" && defined(EMUL_BOOT) && !defined(NO_FLOPPIES)
 	# In case bootable ISO with floppy emulation is desired.
-	@mkdir -p ${CD_DISC2}/floppies
+	@mkdir -p ${CD_DISC2}/floppies ${CD_BOOT}/floppies
 	@cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies
+	@cp ${CD_DISC1}/floppies/boot.flp ${CD_BOOT}/floppies
 .endif
 .if !defined(NOPORTS)
 	@mkdir -p ${CD_DISC1}/ports && \
@@ -899,6 +904,9 @@
 	@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
 	    fbsd_miniinst \
 	    ${CD}/${BUILDNAME}-${TARGET}-miniinst.iso ${CD_DISC1}
+	@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
+	    fbsd_miniboot \
+	    ${CD}/${BUILDNAME}-${TARGET}-miniboot.iso ${CD_BOOT}
 	@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
 	    fbsd_livefs \
 	    ${CD}/${BUILDNAME}-${TARGET}-disc2.iso ${CD_DISC2}

--Bn2rw/3z4jIqBvZU--

--5G06lTa6Jq83wMTw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE/KOSYUkv4P6juNwoRAjfxAJ9x7n1lPyhEowPMMIBMr8W8VQPoIwCdE9UM
wZp2ZryBZSAAhVn+AAcqbe4=
=0rVm
-----END PGP SIGNATURE-----

--5G06lTa6Jq83wMTw--



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