<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Auto Install for Mandrakelinux</TITLE> <META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.0 (Linux)"> <META NAME="AUTHOR" CONTENT="David Eastcott"> <META NAME="CREATED" CONTENT="20040221;10385500"> <META NAME="CHANGEDBY" CONTENT="David Eastcott"> <META NAME="CHANGED" CONTENT="20040502;8530300"> <META NAME="CLASSIFICATION" CONTENT="DrakX Auto Install Reference"> <META NAME="KEYWORDS" CONTENT="DrakX Autoinstall"> <STYLE> <!-- @page { size: 8.5in 11in; margin: 1in } P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } P.western { font-size: 10pt; font-weight: medium } P.text-body-indent-western { margin-left: 0.2in; font-size: 10pt; font-weight: medium } P.text-body-indent-cjk { margin-left: 0.2in } P.text-body-indent-ctl { margin-left: 0.2in } H1 { margin-bottom: 0.08in; page-break-before: always } H1.western { font-family: "Times" } H1.cjk { font-family: "Mincho"; font-size: 16pt } H1.ctl { font-family: "Lucidasans"; font-size: 16pt } H2 { margin-bottom: 0.08in; page-break-before: auto } H2.western { font-family: "Times"; font-style: normal } H2.cjk { font-family: "Mincho"; font-size: 14pt; font-style: italic } H2.ctl { font-size: 14pt; font-style: italic } H3 { margin-bottom: 0.08in; page-break-before: auto } H3.western { font-family: "Times" } H3.cjk { font-family: "Mincho" } H4 { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } H4.western { font-family: "Times"; font-style: normal } H4.cjk { font-family: "Mincho"; font-size: 11pt; font-style: italic } H4.ctl { font-size: 11pt; font-style: italic } TD P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } TD P.western { font-size: 10pt; font-weight: medium } TH P { margin-left: 0.5in; margin-bottom: 0.08in; page-break-before: auto } TH P.western { font-size: 10pt; font-style: italic } TH P.cjk { font-style: italic } TH P.ctl { font-style: italic } P.headings-special-western { margin-top: 0.3in; margin-bottom: 0.1in; font-size: 10pt; font-weight: bold; page-break-after: avoid } P.headings-special-cjk { margin-top: 0.3in; margin-bottom: 0.1in; page-break-after: avoid } P.headings-special-ctl { margin-top: 0.3in; margin-bottom: 0.1in; page-break-after: avoid } P.closecode-western { margin-left: 1in; margin-bottom: 0in; font-family: "Courier", monospace; font-size: 9pt; font-weight: medium } P.closecode-cjk { margin-left: 1in; margin-bottom: 0in } P.closecode-ctl { margin-left: 1in; margin-bottom: 0in } P.coderef-western { margin-left: 1in; margin-bottom: 0.08in; font-family: "Courier", monospace; font-size: 10pt; font-weight: medium } P.coderef-cjk { margin-left: 1in; margin-bottom: 0.08in } P.coderef-ctl { margin-left: 1in; margin-bottom: 0.08in } --> </STYLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR><TH COLSPAN="3" ALIGN="CENTER"> Auto Install for Mandrakelinux</TH></TR><TR> <TD WIDTH="10%" ALIGN="LEFT" VALIGN="BOTTOM"> <A HREF="section7.html">Prev</A></TD><TD WIDTH="80%" ALIGN="CENTER" VALIGN="BOTTOM"></TD> <TD WIDTH="10%" ALIGN="RIGHT" VALIGN="BOTTOM"> <A HREF="section9.html">Next</A></TD></TR></TABLE><HR ALIGN="LEFT" WIDTH="100%"> <H1 CLASS="western"><A NAME="Creating_an_Updated_Installation_CD_Set"></A> Creating an Updated Installation CD Set</H1> <P CLASS="western" STYLE="margin-bottom: 0.15in">There are a couple of reasons for doing this</P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=92> <COL WIDTH=756> <TR VALIGN=TOP> <TD WIDTH=92 HEIGHT=30> <P CLASS="western" ALIGN=RIGHT STYLE="margin-left: 0in">1.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">You are tired of installing everything, then having to run <FONT FACE="Courier, monospace">rpmdrake</FONT> to install all updates.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=92 HEIGHT=30> <P CLASS="western" ALIGN=RIGHT STYLE="margin-left: 0in">2.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in">You are tired of doing more than you really need to...</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-top: 0.15in; margin-bottom: 0.08in">Creating updated CDs/DVD provides you with a some benefits, Nice new shiny up to date date CDs/DVD that you can use for installing, up date your NFS Server file set (for network installs), learn something new.</P> <P CLASS="western">The following is a simple manual approach to creating a set of updated CDs/DVD. I expect that you will adapt it to suit your environment and personal preferences. It assumes that you have purchased a set of CDs from MandrakeSoft (always a goo thing) or downloaded the 'ISO' images and burned a set of CDs.</P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=60> <COL WIDTH=787> <TR VALIGN=TOP> <TD WIDTH=60> <P CLASS="western" STYLE="margin-left: 0in"><IMG SRC="AutoInstall-10.0.3_html_1412bb95.png" NAME="Graphic67" ALIGN=LEFT WIDTH=30 HEIGHT=30 BORDER=0><BR CLEAR=LEFT><BR> </P> </TD> <TD WIDTH=787> <P CLASS="western" STYLE="margin-left: 0.25in">The images that you create are for the newer 700MB CD or 4.7G DVD disks. If you still want to use the 650MB size, then you will have modify the configuration file and add additional disk definitions.</P> </TD> </TR> </TABLE> <H2 CLASS="western"><A NAME="Creating_a_Mastering_File_Set"></A>Creating a Mastering File Set</H2> <P CLASS="western">The first step is to install the package <FONT FACE="Courier, monospace">mkcd-3.8.0-1mdk</FONT> (or later) and all of its dependencies, then create a mirror image of the installation CDs in a working directory and make a few adjustments. Skip and steps (operations) that are not applicable for the media that you are using. As a regular user:</P> <P CLASS="western" STYLE="margin-left: 0.6in; margin-bottom: 0.15in">1. Create Working directories as follows:</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mkdir -p master_cd/cd</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">cd master_cd</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.08in"> 2. Obtain an initial image of the CD-ROM's directory hierarchy and files.</P> <P CLASS="western" STYLE="margin-left: 0.8in; margin-bottom: 0.15in">Insert and Mount the first CD (Installation) then,</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">cp -a /mnt/cdrom/* cd</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">chmod -R u+w cd</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.8in; margin-top: 0.15in; margin-bottom: 0.08in"> Un-mount the first CD, then repeat the above for each additional CD that you have.</P> <P CLASS="western" STYLE="margin-left: 0.6in; margin-bottom: 0.15in">3. Create the new Master RPMS sets using the following:</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mkdir myRPMS</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mv -f cd/Mandrake/RPMS/* myRPMS</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mv -f cd/Mandrake/RPMS2/* myRPMS</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mv -f cd/Mandrake/RPMS3/* myRPMS</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf cd/Mandrake/RPMS</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf cd/Mandrake/RPMS2</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf cd/Mandrake/RPMS3</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">mkdir myRPMSextra</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.75in; text-indent: -0.15in; margin-top: 0.15in; margin-bottom: 0.08in"> 4. Create a CD configuration file called <FONT FACE="Courier, monospace">myCD.conf</FONT> (similar to the following) and place it in the <FONT FACE="Courier, monospace">master_cd</FONT> directory. If you want to save yourself a lot of typing, look in <FONT FACE="Courier, monospace">cd/misc/doc</FONT> and you will find a template called <FONT FACE="Courier, monospace">10.0.conf</FONT>. Modify it so that appears similar to the following (you can experiment with the other stuff there some other time), but adjust the full path names to reflect your setup:</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 STYLE="page-break-inside: avoid"> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">10.0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">list -k ./cd/RPM-GPG-KEYS 1 ./cd/misc/doc/download ./cd/misc/doc/main</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">rpmlist -b ./myRPMSextra</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">rpmlist -b ./myRPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt"># download</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">disc 1 695m 10DOWNLOAD1 "Installation CD 1 (x86)" "Mandrakelinux10.0-1" -p Mandrakesoft</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">dir rpms Mandrake/RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">generic --synthesis rpms 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">advertising ./cd/Mandrake/share/advertising/01-thanks.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/02-community.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/03-software.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/04-configuration.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/05-desktop.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/06-development.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/07-server.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/08-store.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/09-mdksecure.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/10-security.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/11-mnf.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/12-mdkexpert.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/13-mdkexpert_corporate.png</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">installation -o 50,3,0.1 --synthesis -l fr,it,en,de,es -t My-Download-i586 -i ./cd/ </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">-d 1/rpms 2/rpms 3/rpms</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">boot --isolinux isolinux -b isolinux/isolinux.bin --first ./cd/isolinux -f ./cd/images </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">disc 2 695m 10DOWNLOAD2 "Installation CD 2 (x86)" "Mandrakelinux10.0-2" -p Mandrakesoft</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">dir rpms Mandrake/RPMS2</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">generic --synthesis rpms 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">boot -b Boot/cdrom-changedisk.img -- -d -f Boot/ ./cd/images/cdrom-changedisk.img</FONT></P> </TD> </TR> </TABLE> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 STYLE="page-break-inside: avoid"> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">disc 3 695m 10DOWNLOAD3 "International CD (x86)" "Mandrakelinux10.0-3" -p Mandrakesoft</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">dir rpms Mandrake/RPMS3</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">generic --synthesis rpms 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">disc 11 4.36g 10DOWNLOAD1 "Installation DVD 1 (x86)" "Mandrakelinux10.0-1" -p Mandrakesoft</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">dir rpms Mandrake/RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">generic --synthesis rpms 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">advertising ./cd/Mandrake/share/advertising/01-thanks.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/02-community.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/03-software.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/04-configuration.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/05-desktop.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/06-development.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/07-server.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/08-store.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/09-mdksecure.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/10-security.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/11-mnf.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/12-mdkexpert.png </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">./cd/Mandrake/share/advertising/13-mdkexpert_corporate.png</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">installation -o 50,3,0.1 --synthesis -l fr,it,en,de,es -t My-Download-i586 -i ./cd/ </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.8in"><FONT SIZE=1 STYLE="font-size: 8pt">-d 11/rpms 12/rpms</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">boot --isolinux isolinux -b isolinux/isolinux.bin --first ./cd/isolinux -f ./cd/images </FONT> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">disc 12 4.36g 10DOWNLOAD2 "Installation DVD 2 (x86)" "Mandrakelinux10.0-2" -p Mandrakesoft</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">dir rpms Mandrake/RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">generic --synthesis rpms 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western" STYLE="margin-left: 0.5in"><FONT SIZE=1 STYLE="font-size: 8pt">boot -b Boot/cdrom-changedisk.img -- -d -f Boot/ ./cd/images/cdrom-changedisk.img</FONT></P> </TD> </TR> </TABLE> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=60> <COL WIDTH=787> <TR VALIGN=TOP> <TD ROWSPAN=2 WIDTH=60> <P CLASS="western" STYLE="margin-left: 0in"><IMG SRC="AutoInstall-10.0.3_html_1412bb95.png" NAME="Graphic68" ALIGN=LEFT WIDTH=30 HEIGHT=30 BORDER=0><BR CLEAR=LEFT><BR> </P> </TD> <TD WIDTH=787 HEIGHT=48> <P CLASS="western" STYLE="margin-left: 0.25in">The text beginning with <FONT FACE="Courier, monospace">advertising</FONT> through <FONT FACE="Courier, monospace">13-mdkexpert_corporate.png</FONT> and <FONT FACE="Courier, monospace">installation</FONT> through <FONT FACE="Courier, monospace">3/rpms</FONT> and <FONT FACE="Courier, monospace">installation</FONT> through <FONT FACE="Courier, monospace">11/rpms</FONT>, are all on ONE line. </P> </TD> </TR> <TR> <TD WIDTH=787 VALIGN=TOP> <P CLASS="western" STYLE="margin-left: 0.25in">The filenames contained in the directory <FONT FACE="Courier, monospace">Mandrake/share/advertising/</FONT><FONT FACE="Times, serif"> change</FONT> from release to release so you need to adjust them to match what you have (see the file list). If you do not, then the GUI based install will FAIL as it goes to install packages.</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.08in"> 5. Remove files that are re-generated when creating the ISO images.</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf ./iso</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf ./build</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./myCD.script</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./progress.log</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf ./cd/Boot</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./isolinux/boot.cat</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/pkg*.idx</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/Mandrake/base/compss</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/Mandrake/base/depslist.ordered</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/Mandrake/base/hdlist*.cz</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/Mandrake/base/provides</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/Mandrake/base/synth*</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./cd/.rr_moved</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./myRPMS/*.cz</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./myRPMSextra/*.cz</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.08in"> 6. Update the <FONT FACE="Courier, monospace">'rpmsrate'</FONT> file</P> <P CLASS="western" STYLE="margin-left: 0.8in; margin-top: 0.15in; margin-bottom: 0.08in"> This is optional, but if you added a new package and you want it to be installed using the alternate package selection methods then you have to update the file for your changes. Simply edit the file <FONT FACE="Courier, monospace">Mandrake/base/rpmsrate,</FONT> locate the appropriate Group tag, sub-group tag and add your package to the desired rate. If the rate you want to use is missing, then add it along with your package name. If you have to, add the necessary sub-group tag. Be smart and do not create a new tag.</P> <P CLASS="western" STYLE="margin-left: 0.8in">At this point your <FONT FACE="Courier, monospace">'master_cd'</FONT> directory should have the directories <FONT FACE="Courier, monospace">'myRPMS'</FONT>, <FONT FACE="Courier, monospace">'myRPMS4'</FONT> and <FONT FACE="Courier, monospace">'cd'</FONT> and, the file <FONT FACE="Courier, monospace">'myCD.conf'</FONT>.</P> <P CLASS="western">One final note, MandrakeSoft has a series of Twiki pages at <A HREF="http://qa.mandrakesoft.com/twiki/bin/view/Main"><B><I>http://qa.mandrakesoft.com/twiki/bin/view/Main</I></B></A> that describes a substantial number of features of the distribution. For more specific details regarding the configuration file used by <FONT FACE="Courier, monospace">mkcd</FONT>, then look at <A HREF="http://qa.mandrakesoft.com/twiki/bin/view/Main/MakeCD"><B><I>http://qa.mandrakesoft.com/twiki/bin/view/Main/MakeCD</I></B></A>.</P> <H2 CLASS="western"><A NAME="Updating_the_Master_File_Set"></A>Updating the Master File Set</H2> <P CLASS="western">Now the fun part. Locate your favorite ftp mirror site and get the <FONT FACE="Courier, monospace">'updates/10.0/RPMS'</FONT> directory contents and place them in the <FONT FACE="Courier, monospace">master_cd</FONT> directory in a directory called <FONT FACE="Courier, monospace">updates</FONT>.</P> <P CLASS="western">When you are done, the <FONT FACE="Courier, monospace">updates</FONT> directory should only contain <FONT FACE="Courier, monospace">'*.rpm'</FONT> files</P> <P CLASS="western">Now the tricky part. You have to delete the older rpms from your <FONT FACE="Courier, monospace">myRPMS</FONT> and <FONT FACE="Courier, monospace">myRPMSextra</FONT> directories and replace them with the new ones from the <FONT FACE="Courier, monospace">updates</FONT> directory into the appropriate <FONT FACE="Courier, monospace">myRPMS</FONT> or <FONT FACE="Courier, monospace">myRPMSextra</FONT> directory. </P> <P CLASS="western" STYLE="margin-bottom: 0.15in">I have found that if you run Midnight Commander (<FONT FACE="Courier, monospace">mc</FONT>) from the console or an xterm, you can point it at both your <FONT FACE="Courier, monospace">myRPMS </FONT>/ <FONT FACE="Courier, monospace">myRPMSextra</FONT> and <FONT FACE="Courier, monospace">updates</FONT> directories at the same time. This makes it a little easier to see what has to be removed and copied.</P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=61> <COL WIDTH=786> <TR VALIGN=TOP> <TD WIDTH=61> <P CLASS="western" STYLE="margin-left: 0in"><IMG SRC="AutoInstall-10.0.3_html_m199b468e.png" NAME="Graphic69" ALIGN=LEFT WIDTH=29 HEIGHT=28 BORDER=0><BR CLEAR=LEFT><BR> </P> </TD> <TD WIDTH=786> <P CLASS="western" STYLE="margin-left: 0.25in">Be careful and delete only the older files that correspond to the new update ones. See the <A HREF="#Advanced_and_Less_Error_Prone_Approaches"><B><I>Advanced</I></B></A> section below.</P> </TD> </TR> </TABLE> <H2 CLASS="western"><A NAME="Creating_New_ISO_Images"></A>Creating New ISO Images</H2> <P CLASS="western" STYLE="margin-left: 0.6in; margin-bottom: 0.15in">1. Clean up from any previous ISO creation sessions</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">cd master_cd</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf /home/<your home>/tmp/10.0</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf /home/<your home>/tmp/build</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf /home/<your home>/tmp/.mkcd*</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf /home/<your home>/tmp/.build_hdlist*</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf ./build</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -rf ./iso</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f ./myCD.script</P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western">rm -f progress.log</P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.08in"> 2. Build the new ISO images</P> <P CLASS="western" STYLE="margin-left: 0.8in; margin-bottom: 0.15in">For CDs use:</P> <P CLASS="closecode-western">mkcd -s myCD.conf --verbose -p myCD.script -m 1,2,3 &> ./progress.log</P> <P CLASS="western" STYLE="margin-left: 0.8in; margin-top: 0.15in; margin-bottom: 0.15in"> For a DVD use:</P> <P CLASS="closecode-western">mkcd -s myCD.conf --verbose -p myCD.script -m 11 &> ./progress.log</P> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.08in"> When the build is done, you should have three ISO images in the iso/9.0 directory called:</P> <P CLASS="western" STYLE="margin-left: 0.8in"><FONT FACE="Courier, monospace">1.iso</FONT>, <FONT FACE="Courier, monospace">2.iso</FONT> and <FONT FACE="Courier, monospace">3.iso</FONT> or <FONT FACE="Courier, monospace">11.iso</FONT>.</P> <P CLASS="western" STYLE="margin-left: 0.6in">You can now use your favorite CD writing program to create new CDs.</P> <P CLASS="western">A few things you should watch out for:</P> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=91> <COL WIDTH=756> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=83> <P CLASS="western">1.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">If you seem to be missing some RPMS on your new CD set, it is probably because there were missing dependencies and as a result they were dropped by <FONT FACE="Courier, monospace">mkcd</FONT>. If you saw REJECTED appear on the display, then you definitely are missing some packages. You will have to look at the dependencies for the rejected packages and make suitable adjustments. </P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=48> <P CLASS="western">2.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">If only CD 1 is too large, you can try reducing the <FONT FACE="Courier, monospace">695m</FONT> for it to try and force <FONT FACE="Courier, monospace">mkcd</FONT> to move some packages from CD 1 to the remaining 2 CDs.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=48> <P CLASS="western">3.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">If you have more RPMS than will fit in the disks defined, then add an additional disc definition. See the progression of <FONT FACE="Courier, monospace">disc 2</FONT> to <FONT FACE="Courier, monospace">disc 3</FONT> for a hint about what to do.</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91 HEIGHT=30> <P CLASS="western">4.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">If the ISO build fails when you are building the small (695m) disks and you see a message like: </P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=91> <P CLASS="western"><BR> </P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0.2in"><FONT FACE="Courier, monospace"><FONT SIZE=1 STYLE="font-size: 8pt">FATAL mark_and_check_list: a previous revert to put needed packages failed, cannot order packages correctly fo rep 1 on disc 1</FONT></FONT></P> <P CLASS="western" STYLE="margin-left: 0in; margin-top: 0.15in"><FONT FACE="Times, serif"><FONT SIZE=2>It means that mkcd was unable to create the first disk because the were too many REQUIRED packages needed for the first disk. You can try and remove various packages, but I found that removing any OLDer kernels did the trick for me. Alternately, you can build the DVD image.</FONT></FONT></P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-top: 0.15in; margin-bottom: 0.08in">If you make any changes then repeat all the steps in <A HREF="#Creating_New_ISO_Images"><B><I>Creating New ISO Images</I></B></A>.</P> <H2 CLASS="western"><A NAME="Advanced_and_Less_Error_Prone_Approaches"></A> Advanced and Less Error Prone Approaches</H2> <H3 CLASS="western"><A NAME="Alternate_for_Creating_the_Initial_Image"></A> Alternate for Creating the Initial Image</H3> <P CLASS="headings-special-western">ISO via Loopback device</P> <P CLASS="western">If you obtained your Mandrakelinux<FONT FACE="Times, serif">™</FONT> installation CD by downloading the ISO files from a ftp site and have kept them around just in case, then a more reliable way of creating the Mastering File Set is to mount the ISO images via a loop back device and simply copy their contents. The following is a simple set of steps to make an ISO image accessible as though it was just another disk.</P> <P CLASS="western">Assuming that you are following the steps for <A HREF="#Creating_a_Mastering_File_Set" NAME="Creating a Mastering File Set"><B><I>Creating a Mastering File Set</I></B></A>, then the following replaces Step 2. </P> <P CLASS="western" STYLE="margin-left: 0.6in; margin-bottom: 0.15in">You need a temporary mount point and <FONT FACE="Courier, monospace">/mnt/disk</FONT> is usually available so, as <FONT FACE="Courier, monospace">root</FONT>:</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">mount <where your isos are>/Mandrake10-cd1-inst.i586.iso /mnt/disk -t iso9660 -o loop</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">cp -a /mnt/disk/* cd</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">umount /mnt/disk</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">chmod -R u+w cd</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">mount <where your isos are>/Mandrake10-cd2-ext.i586.iso /mnt/disk -t iso9660 -o loop</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">cp -a /mnt/disk/* cd</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">umount /mnt/disk</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">chmod -R u+w cd</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">mount <where your isos are>/Mandrake10-cd3-i18n.i586.iso /mnt/disk -t iso9660 -o loop</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">cp -a /mnt/disk/* cd</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">umount /mnt/disk</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">chmod -R u+w cd</FONT></P> </TD> </TR> </TABLE> <P CLASS="western" STYLE="margin-left: 0.6in; margin-top: 0.15in; margin-bottom: 0.15in"> finally you have to change ownership from <FONT FACE="Courier, monospace">root</FONT> to a regular user,</P> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">chown -R <user>.<group> cd</FONT></P> <P CLASS="western" STYLE="margin-top: 0.15in; margin-bottom: 0.08in">Now you can resume with Step 3 of <A HREF="#Creating_a_Mastering_File_Set"><B><I>Creating a Mastering File Set</I></B></A>.</P> <H3 CLASS="western"><A NAME="A_Script_Based_Updater"></A>A Script Based Updater</H3> <P CLASS="western">The single most frustrating part of maintaining an Updated Installation CD Set, is deleting the correct 'old' RPMS and replacing them with the new 'Updates' RPMS. It is also the one most likely to result in an error; deleting the wrong file or not copying over the new update. So I created the following script to help me. It is not pretty and I am sure that an enterprising individual could come up with a better/safer one, but it works for me.</P> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#!/bin/bash</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># usage: check2updates <Master RPMS directory> <Master RPMS4 directory> <updates directory></FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># Examines each update file to see if it is newer than one in the master set.</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># If it is, then the older one is removed and the update copied to the master</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># set.</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># If an update package is found that is not in the master set, its name is</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># placed in the file "new_rpms.list" for you to manually deal with.</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># first some Constants</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">MASTER_FILES="masterfiles.list"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">UPDATE_FILES="updatefiles.list"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">SELECT_FILES="selections.list"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">NEW_RPMS="new_rpms.list"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># and variables</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">masterfile=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">mastername=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">masterversion=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">masterrelease=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updatefile=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updatename=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updateversion=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updaterelease=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">master=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">master4=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updates=""</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># then some functions</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">decide_action ()</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">{</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">missing=0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">for masterfile in `cat $SELECT_FILES`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">do</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ "`basename $masterfile`" = "$updatefile" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">return 2</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">get_master_info "$masterfile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ "$mastername" = "$updatename" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">missing=1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt"># this is the right one</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ `expr $masterversion \< $updateversion` = "1" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.6in"><FONT SIZE=1 STYLE="font-size: 8pt">return 0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">elif [ "$masterversion" = "$updateversion" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.6in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ `expr $masterrelease \< $updaterelease` = "1" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">return 0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.6in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">return 2</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">done</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ $missing -eq 0 ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt"># update has no match in master list</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">return 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># no need to update this one</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">return 2</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">}</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">get_update_info ()</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">{</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># $1 is name of package to query</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">updatename=`rpm -qp --nosignature --queryformat %{NAME} $1`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">updateversion=`rpm -qp --nosignature --queryformat %{VERSION} $1`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">updaterelease=`rpm -qp --nosignature --queryformat %{RELEASE} $1 | sed s/mdk//`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">}</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">get_master_info ()</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">{</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># $1 is name of package to query</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">mastername=`rpm -qp --nosignature --queryformat %{NAME} $1`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">masterversion=`rpm -qp --nosignature --queryformat %{VERSION} $1`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">masterrelease=`rpm -qp --nosignature --queryformat %{RELEASE} $1 | sed s/mdk//`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">}</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># finally the main entry point</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ $# -ne 3 ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "usage: <Master RPMS> <Master RPMS4> <Update RPMS>"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -d "$1" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Need directory name for Master RPMS."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">master="$1"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -d "$2" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Need directory name for Master RPMS4."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">master4="$2"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -d "$3" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Need directory name for Update RPMS."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">updates="$3"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#clean up old files from previous runs</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $NEW_RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># create list of Update RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">ls $updates/* | sed 's|'$updates'/||' > $UPDATE_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># and for the master RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">find $master -name “*” | sed 's|\./||' > $MASTER_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">find $master4 -name “*” | sed 's|\./||' >> $MASTER_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># lets do it</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">for updatefile in `cat $UPDATE_FILES`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">do</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># get update package info</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Check status of update package: $updatefile."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">get_update_info "$updates/$updatefile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">grep ".*/$new_updatename" $MASTER_FILES > $SELECT_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ $? -eq 0 ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">decide_action</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">result=$?</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">case $result</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">in</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">0) # replace, new update</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">echo " Replacing `basename $masterfile` with $updatefile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $masterfile</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">cp "$updates/$updatefile" "`dirname $masterfile`/"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">;;</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">1) # missing from master list</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">echo " Update does not exist in the Master File Set: $updatefile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "$updatefile" >> $NEW_RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">;;</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.4in"><FONT SIZE=1 STYLE="font-size: 8pt">*) # skip, update already in Master, but make sure it really is..</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! "`basename $masterfile`" = "$updatefile" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo " ERROR Skipping Master file: $masterfile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.8in"><FONT SIZE=1 STYLE="font-size: 8pt">;;</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">esac</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">else</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt"># the update is a new package, report and add to new list</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo " Update does not exist in the Master File Set: $updatefile"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "$updatefile" >> $NEW_RPMS</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">done</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt"># clean up junk files</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MASTER_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $UPDATE_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $SELECT_FILES</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">exit 0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 0.76in"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> </TABLE> <H3 CLASS="western"><A NAME="Alternate_for_Creating_an_Updated_CD_Set"></A> Alternate for Creating an Updated CD Set</H3> <TABLE WIDTH=847 BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=92> <COL WIDTH=756> <TR VALIGN=TOP> <TD WIDTH=92 HEIGHT=48> <P CLASS="western">1.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">Create a mastering file set as described in steps 1 through 6 of the section <A HREF="#Creating_a_Mastering_File_Set"><B><I>Creating a Mastering File Set</I></B></A> (Step 2 could be replaced by the procedure described in section <A HREF="#Alternate_for_Creating_the_Initial_Image"><B><I>Alternate for Creating the Initial Image</I></B></A>).</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=92 HEIGHT=30> <P CLASS="western">2.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">Run the script <FONT FACE="Courier, monospace">check2updates</FONT>, (described in the section <A HREF="#A_Script_Based_Updater"><B><I>A Script Based Updater</I></B></A>).</P> </TD> </TR> <TR VALIGN=TOP> <TD WIDTH=92 HEIGHT=48> <P CLASS="western">3.</P> </TD> <TD WIDTH=756> <P CLASS="western" STYLE="margin-left: 0in">Then use the following script to create the ISO images or, after you have run the <FONT FACE="Courier, monospace">check2updates</FONT> script, then use the following:</P> </TD> </TR> </TABLE> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <COL WIDTH=256*> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">#!/bin/bash</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># This is a simple script to complete the generation of a</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># set of CD's containing the current updates.</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># It assumes that the ./check2updates script has been run, and that</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># the master RPM files contain all the latest stuff.</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># usage: ./makecd [clean]</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">#</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">MY_DIR=`pwd`</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">TMP_DIR="$HOME/tmp"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># couple quick integrity checks</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -e $MY_DIR/myRPMS ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Could not find the \"myRPMS\" directory."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -e $MY_DIR/myRPMSextra ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Could not find the \"myRPMSextra\" directory."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -e $MY_DIR/myCD.conf ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Could not find the CD Configuration file."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ ! -e $MY_DIR/cd ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Could not find the \"cd\" directory."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">exit 1</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># first, get rid of the old stuff</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Removing old stuff..."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">if [ "XXX$1" != "XXX" ]; then</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt"># clean up cache area files</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Removing cache filesfrom $TMP_DIR."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $TMP_DIR/10.0</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $TMP_DIR/build</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $TMP_DIR/.mkcd*</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $TMP_DIR/.build_hdlist*</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western" STYLE="margin-left: 1.2in"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $MY_DIR/build</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">fi</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># clean up from the last run</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $MY_DIR/iso</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/myCD.script</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/progress.log</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># make sure CD base image is clean</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -rf $MY_DIR/cd/Boot</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/isolinux/boot.cat</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/pkg*.idx</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/Mandrake/base/compss</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/Mandrake/base/depslist.ordered</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/Mandrake/base/hdlist*.cz</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/Mandrake/base/provides</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/Mandrake/base/synth*</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/cd/.rr_moved</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt"># remove any disk content files</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/myRPMS/*.cz</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">rm -f $MY_DIR/myRPMSextra/*.cz</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Now making ISO images."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">mkcd -s $MY_DIR/myCD.conf --verbose 1 -p myCD.script -m 11,12 &> $MY_DIR/progress.log</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><BR> </P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "Done, the ISOs are located at $MY_DIR/iso/10.0."</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">echo "and, the verbose diagnostic information is in the file $MY_DIR/progress.log"</FONT></P> </TD> </TR> <TR> <TD WIDTH=100% VALIGN=TOP BGCOLOR="#e6e6e6"> <P CLASS="closecode-western"><FONT SIZE=1 STYLE="font-size: 8pt">exit 0</FONT></P> </TD> </TR> </TABLE> <P CLASS="western"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <P CLASS="western" STYLE="page-break-before: always"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <P CLASS="western"><BR><BR> </P> <HR ALIGN="LEFT" WIDTH="100%"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR><TD WIDTH="33%" ALIGN="LEFT" VALIGN="TOP"><A HREF="section7.html">Prev</A></TD><TD WIDTH="34%" ALIGN="CENTER" VALIGN="TOP"><A HREF="index.html">Home</A></TD> <TD WIDTH="33%" ALIGN="RIGHT" VALIGN="TOP"><A HREF="section9.html">Next</A></TD></TR> <TR><TD WIDTH="33%" ALIGN="LEFT" VALIGN="TOP">Scratch Built Auto Install Diskette</TD> <TD WIDTH="34%" ALIGN="CENTER" VALIGN="TOP"> </TD> <TD WIDTH="33%" ALIGN="RIGHT" VALIGN="TOP">Setting up a Simple NFS Server</TD></TR></TABLE> </BODY> </HTML>