On 08-Aug-2002 John Hay wrote: > Here is a try at a 3 floppy system. Most people should be able to > install with the first 2 floppies (kern.flp and mfsroot.flp). Just > those that need a driver on the third floppy (drivers.flp) will > need it. > > If this idea is acceptable, we should probably tweak what should > go on the second floppy and what is used the least and put that > on the last one. > > To load drivers from the drivers floppy, go to "Configure" and then > the last option there is "Load KLD". > > The last 2 files in the diff (bld-ko.sh and driver-list.awk) are not > really needed. That is part of my attempt to create a single .ko to > save space on mfsroot.flp. But I can't get internal dependancies to > work yet. Most drivers depend on miibus and that don't get loaded > first. > > John > -- > John Hay -- [EMAIL PROTECTED] / [EMAIL PROTECTED] > > > Index: usr.sbin/sysinstall/system.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/sysinstall/system.c,v > retrieving revision 1.119 > diff -u -r1.119 system.c > --- usr.sbin/sysinstall/system.c 1 Nov 2001 23:32:46 -0000 1.119 > +++ usr.sbin/sysinstall/system.c 8 Aug 2002 09:17:01 -0000 > @@ -348,7 +348,13 @@ > snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp.gz", file); > if (file_readable(buf)) > return expand(buf); > + snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp", file); > + if (file_readable(buf)) > + return expand(buf); > snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT.gz", file); > + if (file_readable(buf)) > + return expand(buf); > + snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT", file); > if (file_readable(buf)) > return expand(buf); > snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sysinstall/help/%s.hlp", file);
What does this patch do? It calls expand() so it is expecting an uncompressed file which is probably wrong. > Index: release/Makefile > =================================================================== > RCS file: /home/ncvs/src/release/Makefile,v > retrieving revision 1.698 > diff -u -r1.698 Makefile > --- release/Makefile 5 Aug 2002 16:57:43 -0000 1.698 > +++ release/Makefile 8 Aug 2002 15:40:27 -0000 > @@ -518,7 +518,8 @@ > .endif > cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk subclean > cd ${.CURDIR}/..; ${TMAKE} build-tools > - cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk all > + cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk \ > + CFLAGS="-Os -pipe" -DNO_CPU_CFLAGS all > mv ${j}_crunch/${j}_crunch ${RD}/crunch/${j} > .endfor > touch release.5 > @@ -654,15 +655,15 @@ > > ${RD}/mfsfd/stand/etc/services > ln ${RD}/mfsfd/stand/etc/services ${RD}/mfsfd/etc/services > ln ${RD}/mfsfd/stand/etc/netconfig ${RD}/mfsfd/etc/netconfig > - gzip -9c ${RD}/trees/base/COPYRIGHT > ${RD}/mfsfd/stand/help/COPYRIGHT.hlp.gz > + cat ${RD}/trees/base/COPYRIGHT > ${RD}/mfsfd/stand/help/COPYRIGHT.hlp > .if !defined(NODOC) > @for i in ${DIST_DOCS_ARCH_INDEP}; do \ > - gzip -9c ${RND}/${RELNOTES_LANG}/$$i/article.txt > >${RD}/mfsfd/stand/help/`echo $${i} | tr > 'a-z' 'A-Z'`.TXT.gz; \ > + cat ${RND}/${RELNOTES_LANG}/$$i/article.txt > ${RD}/mfsfd/stand/help/`echo >$${i} | tr 'a-z' > 'A-Z'`.TXT; \ > done > @for i in ${DIST_DOCS_ARCH_DEP}; do \ > - gzip -9c ${RND}/${RELNOTES_LANG}/$$i/${TARGET}/article.txt > >${RD}/mfsfd/stand/help/`echo > $${i} | tr 'a-z' 'A-Z'`.TXT.gz; \ > + cat ${RND}/${RELNOTES_LANG}/$$i/${TARGET}/article.txt > >${RD}/mfsfd/stand/help/`echo $${i} | > tr 'a-z' 'A-Z'`.TXT; \ > done > - @mv ${RD}/mfsfd/stand/help/INSTALLATION.TXT.gz >${RD}/mfsfd/stand/help/INSTALL.TXT.gz > + @mv ${RD}/mfsfd/stand/help/INSTALLATION.TXT ${RD}/mfsfd/stand/help/INSTALL.TXT > .endif > -test -f ${.CURDIR}/install.cfg && cp ${.CURDIR}/install.cfg ${RD}/mfsfd > @mkdir -p ${RD}/mfsfd/boot > @@ -674,16 +675,28 @@ > @echo "Making the regular boot floppy." > @tar --exclude CVS -cf - -C ${.CURDIR}/../usr.sbin/sysinstall help | \ > tar xf - -C ${RD}/mfsfd/stand > - @echo "Compressing doc files..." > - @gzip -9 ${RD}/mfsfd/stand/help/*.hlp Why in the world are you not compressing the various text files? I thought the name of the game was to _decrease_ the size of things on the floppies. The rest of this looks fine although I think perhaps it should be split up into a few separate commits (SINGLE_MODULE should be its own commit, driver.flp should be its own commit, etc.) -- John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message