LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2004, 09:28 AM   #1
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Post Creating a Redhat based livecd


I have used the Knoppix and Slax cdroms to create my own versions of livecds and that was fun.
Knoppix, Slax and Adios are more than good enough the way they are but in the spirit of linux techy stuff, if something can be changed, then something needs to be changed.

There seems to be scant information on making a Redhat based livecd so here are my notes using Adios.

Code:
While in an existing linux system, create the ext3 and swap partitions.
In this example, /dev/hda2 (ext3) and /dev/hda3 (swap)

Bootup with a Linux system which has squashfs support.

Insert the adios cd and mount the device (mount /mnt/cdrom)
Make a directory for using the Makefile commands.
bash# cd root
bash# mkdir adios
bash# cd adios
bash# cp /mnt/cdrom/adk/Makefile .

If you are using the Makefile from the adios cd, then it needs to be edited...
bash# kwrite Makefile
	edit the variable DEVELDEV = /dev/hda8
	change to DEVELDEV = /dev/hda2

	edit the bootloader section to comment out lilo
	#LILOCONF = /etc/lilo.conf

bash# make devel
bash# make rwon #### This step is needed to make the new file system bootable.

The MAKEDEV package needs to be upgraded so synaptic and yum wont complain.
This needs to be done while the new file system is un-mounted,
 so this would be a good time to do that. I copy the makedev rpm to the /root/adios
 directory (where I am running the Makefile) and install it from there.

bash# cp /mnt/win/tech/aclinux/"Linux Stuff"/Adios/MAKEDEV-3.3.8-2.i386.rpm .
bash# rpm -r /mnt/devel -Uvh *.rpm

Reboot with the Adios cd using selection #1

Open a terminal and execute su -

bash# /mnt/cdrom/adk/copykernel
 Select /dev/hda2 as the destination for the kernel

Reboot into the existing linux system and add Adios to the grub.conf
title ADIOS_BUILD
    root (hd0,1)
    kernel /boot/vmlinuz-adios ro lids=0 root=/dev/hda2

###########################################################

Note: Adios root logins are disabled in /etc/X11/xdm/kdmrc

Note: The timezone and locale are set to Australia.
Change the timezone and language to your locale.
Adjust Date & Time after changing the timezone.

Also, change the /etc/sysconfig/i18n to your locale.
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

###########################################################

Adding & Removing packages...

Now you are ready to add or remove packages while booted up into the new file system.
I use apt-get and synaptic for that. Yum is ok but it insists on installing a new kernel
which will not be used so it has to be removed again (saving space).

Note: Adding new packages causes some config files to be saved as "rpmnew or rpmsave".
This is ok in most cases, but not for the file /etc/rc.d/rc.sysinit as it causes a boot failure.
The rc.sysinit.rpmsave needs to be restored to rc.sysinit

Don't forget to clean up the hard drive installation before making the iso image.
Unless you are using a DVD, the iso needs to be < 700MB

bash# cd /
bash# find . -depth -type f \( -name '*.rpmsave' -o -name '*.rpmnew' \) -exec rm {} \;
bash# apt-get remove yum
bash# apt-get remove synaptic
bash# rpm -qa | grep apt
bash# rpm -e apt-0.5.15cnc6-0.fdr.11.1  # those numbers maybe different
Note: Remove /etc/apt /var/cache/apt and /var/cache/yum
bash# updatedb


Creating the new live cd...

Bootup with a Linux system which has squashfs support.
 Using the system which was used to create the adios system is best as
 the files are still intact from the "make devel and make rwon " commands.

bash# cd /root/adios
bash# make rwoff

bash# make files
### or use the individul commands found in the Makefile

bash# make iso
## Check the size of the iso, needs to be < 700MB

bash# make blank
### use only if you have an R/W that needs to be blanked

bash# make burn

Last edited by homey; 09-16-2004 at 11:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Win98\Linux Box Using LiveCD Knoppix gasmth8 Linux - Distributions 8 11-01-2005 06:48 AM
Linux vs Ecomstation Demo LiveCD (Based on OS/2) xyzxyz General 2 10-30-2005 05:16 AM
Creating a proxy server with web based login shannondoko Linux - Networking 0 06-06-2005 07:28 PM
New Slackware-based LiveCD SlackerLX Slackware 26 03-02-2005 04:27 AM
Creating a date-based filename for a tarball? HomeBrewer Linux - Newbie 4 12-20-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration