miniboot.iso (was: Re: Floppies for ALPHA)
Ruslan Ermilov
ru at freebsd.org
Thu Jul 31 02:43:10 PDT 2003
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.
> >
> >
> > Cheers,
>
> This idea has intrigued me for a while. Feel free to prototype
> something!
>
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-miniinst.iso
-rw-r--r-- 1 110 root 221773824 Jun 8 19:06 5.1-RELEASE-amd64-miniinst.iso
-rw-rw-r-- 1 110 root 249331712 Jun 5 16:49 5.1-RELEASE-i386-miniinst.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,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software Ltd,
ru at FreeBSD.org FreeBSD committer
-------------- next part --------------
Index: Makefile
===================================================================
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= ${_R}/cdrom
CD_DISC1= ${CD}/disc1
CD_DISC2= ${CD}/disc2
+CD_BOOT= ${CD}/boot
# Where the bootstrap ports (see DOCPORTS) get installed.
LOCALDIR= /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}
- at ln -s . ${CD_DISC1}/${BUILDNAME}
+ - at 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 = ${BUILDNAME}" > ${CD_DISC1}/cdrom.inf
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
+ @echo "CD_VERSION = ${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="mfs_root"' >> ${CD_DISC2}/boot/loader.conf
@echo 'mfsroot_name="/boot/mfsroot"' >> ${CD_DISC2}/boot/loader.conf
@cp -Rp ${CD_DISC2}/boot ${CD_DISC1}
+ @cp -Rp ${CD_DISC1}/boot ${CD_BOOT}
.endif
.if ${TARGET} == "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}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-alpha/attachments/20030731/1334d80b/attachment.bin
More information about the freebsd-alpha
mailing list