[96966] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: RedHat CD Howto?

daemon@ATHENA.MIT.EDU (Graham Hemmings)
Fri Oct 30 11:17:56 1998

Date: Fri, 30 Oct 1998 16:16:52 +0000
To: redhat-list@redhat.com
From: Graham Hemmings <gh-work@netcomuk.co.uk>
In-Reply-To: <000401be03da$6942ec60$8c2f87d0@registered-user>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

At 23:53 29/10/98 -0800, you wrote:

Here's the one I knocked up and posted a while back, hope it is what you need.


======================================================================
HOWTO CREATE A (BOOTABLE) RH5.1 CD                      GVH - 20/07/98
======================================================================

Below is the procedure I used to create this RH5.1 CD with
updated RPMs included. I assume that the Redhat 5.1 directories will
be placed onto a Linux box under the directory /temp/rh5.1 this will
become the root of your CD.

1) Retrieve RH5.1 from RedHat's site (or any mirror).  You MUST ensure
   that all filenames and ATTRIBUTES are preserved.  If you are
   retrieving them using a UNIX box then you should not have any
   problems.  If you are retrieving them using any other platform then
   get the FTP server to tar the source before sending it.  You can do
   this by specifying the directory that you want to retrieve and
   appending ".tar" (without the quotes) to the end. There are several
   directories you should retrieve in this way;

      dosutils
      gnome
      images
      misc
      RedHat/base
      RedHat/instimage

   All other directories may be retrieved in the normal way so long as
   their filenames are preserved.

2) Retrieve all updated RPMs from RedHat's FTP Site.

3) Replace the old RPMs with the updated RPMs. As they will be
   different versions (and hence different file names) you MUST be
   sure to delete the old RPMs.

   Note: You can also add any of your favourite (non-distribution)
         RPMS and remove any from the distribution that you don't
         want.  But be sure that you know what the implications of
         doing so will be.  It may also be necessary to edit the file
         RedHat/base/comps although I cannot offer any advice on the
         details of this file.

4) Before proceeding to step 5, make absolutely sure that everything

   is where it should be and pay particular attention to the Case of
   directory names (Windows may have screwed these up for you).


5) You now need to create a new RedHat/base/hdlist file so that the
   installation routine will use the new RPMs. Do this by typing
   the following:

    /temp/rh5.1/misc/src/install/genhdlist /temp/rh5.1

6) The next thing to do is create an ISO image, you can then burn
   this image onto a CD using your favourite platform - or even
   Windows ;)  To do this enter one of the following as one line:

   For a bootable CD (if boot images are available)
   ================================================

   mkisofs -b misc/boot/autoboot.img -c misc/boot/boot.catalog -a
           -A "RedHat Linux 5.1 with Patches to 07/07/98" -d -L -N
           -o /temp/RH51.iso -P "Publisher ID" -p "Preparer ID" -r
           -T -V "RHLinux5.1" -v /temp/rh5.1


   For a non-bootable CD
   ================================================

   mkisofs -a -A "RedHat Linux 5.1 with Patches to 07/07/98" -d -L 
           -N -o /temp/RH51.iso -P "Publisher ID" -p "Preparer ID"
           -r -T -V "RHLinux5.1" -v /temp/rh5.1


   Alternatively you could use mkhybrid instead of mkisofs to create
   an image with Joliet support (Win95 & Win NT) as well as Rock Ridge
   extensions:

   For a bootable CD (if boot images are available)
   ================================================

   mkhybrid -b misc/boot/autoboot.img -c misc/boot/boot.catalog -a
            -A "RedHat Linux 5.1 with Patches to 07/07/98" -d -J -L -N
            -o /temp/RH51.iso -P "Publisher ID" -p "Preparer ID" -r
            -T -V "RHLinux5.1" -v /temp/rh5.1


   For a non-bootable CD
   ================================================

   mkhybrid -a -A "RedHat Linux 5.1 with Patches to 07/07/98" -d -J -L 
            -N -o /temp/RH51.iso -P "Publisher ID" -p "Preparer ID"
            -r -T -V "RHLinux5.1" -v /temp/rh5.1


   Obviously you can replace "Publisher ID" & "Preparer ID" with
   whatever you like. For more details on the options I have used
   take a look at the mkisofs man page.

7) You should now have an ISO image that you can burn to CD. If you
   want to check that the image is OK and you have compiled loopback
   filesystem support into your kernel, then you can actually mount
   this image as a filesystem and have a look through it, or even
   install another PC with RH5.1 from it via NFS or FTP! Isn't Linux
   wonderful!  You can do this with the following command:

   mount -t iso9660 -o loop /temp/rh5/RH51.iso /mnt/rh5.1

   You should make sure that the directory /mnt/rh5.1 exists.


Note you will find a file called TRANS.TBL in every directory. This is
a translation table that will allow you to find the correct filename
on an OS that doesn't support Rockridge or Joliet for long filenames
should you have the need to.  It also lists dev types and symlinks.

Good Luck

Graham...
    


>Hey everyone....
>
>A few months ago a really good howto for writing a redhat cd was posted, and
>for the life of me I can't seem to find it in the archives. Can someone
>repost that message?
>
>TIA,
>
>Jeremy Domingue
>jer@hughes.net


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post