Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You can use this script to build the DVD ISO image, warning some editing may be required but unlikely. If wanted you can create the CD ISO images for whatever reason(s). In either case requires a lot of hard drive space (the size of the 5 CD ISO images times 3 or about 2 times the space of all the files on the 5 CD's)
To build the CD ISO images, insert each CD and do not mount then do something like;
dd if=/dev/cdrom of=cd#.iso ; note: replace # with the number of the CD (1 to 5)
Code:
#/bin/bash
# by Chris Kloiber <ckloiber@redhat.com>
# A quick hack that will create a bootable DVD iso of a Red Hat Linux
# Distribution. Feed it either a directory containing the downloaded
# iso files of a distribution, or point it at a directory containing
# the "RedHat", "isolinux", and "images" directories.
# This version only works with "isolinux" based Red Hat Linux versions.
# Lots of disk space required to work, 3X the distribution size at least.
# GPL version 2 applies. No warranties, yadda, yadda. Have fun.
if [ $# -lt 2 ]; then
echo "Usage: `basename $0` source /destination/DVD.iso"
echo ""
echo " The 'source' can be either a directory containing a single"
echo " set of isos, or an exploded tree like an ftp site."
exit 1
fi
cleanup() {
[ ${LOOP:=/tmp/loop} = "/" ] && echo "LOOP mount point = \/, dying!" && exit
[ -d $LOOP ] && rm -rf $LOOP
[ ${DVD:=~/mkrhdvd} = "/" ] && echo "DVD data location is \/, dying!" && exit
[ -d $DVD ] && rm -rf $DVD
}
cleanup
mkdir -p $LOOP
mkdir -p $DVD
if [ !`ls $1/*.iso 2>&1>/dev/null ; echo $?` ]; then
echo "Found ISO CD images..."
CDS=`expr 0`
DISKS="1"
for f in `ls $1/*.iso`; do
mount -o loop $f $LOOP
cp -av $LOOP/* $DVD
if [ -f $LOOP/.discinfo ]; then
cp -av $LOOP/.discinfo $DVD
CDS=`expr $CDS + 1`
if [ $CDS != 1 ] ; then
DISKS=`echo ${DISKS},${CDS}`
fi
fi
umount $LOOP
done
if [ -e $DVD/.discinfo ]; then
awk '{ if ( NR == 4 ) { print disks } else { print ; } }' disks="$DISKS" $DVD/.discinfo > $DVD/.discinfo.new
mv $DVD/.discinfo.new $DVD/.discinfo
fi
else
echo "Found FTP-like tree..."
rsync -avP --exclude SRPMS $1/* $DVD
# cp -av $1/* $DVD
[ -e $1/.discinfo ] && cp -av $1/.discinfo $DVD
fi
rm -rf $DVD/isolinux/boot.cat
find $DVD -name TRANS.TBL | xargs rm -f
# My thanks to Mubashir Cheema for suggesting this fix.
# cd $DVD
mkisofs -J -R -v -T -o $2 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table $DVD
/usr/lib/anaconda-runtime/implantisomd5 --force $2
# Don't like forced mediacheck? Try this instead.
# /usr/lib/anaconda-runtime/implantisomd5 --supported-iso --force $2
cleanup
echo ""
echo "Process Complete!"
echo ""
I used this script to create the dvd. I selected everything in the software menu and it fails on the cyrus package. I was able to successfully install everything but the cyrus package. Is there anyway that i can put in a functional cyrus package?
I want to place these DVDs in each of our specialized servers. Is there a way to inject the specialized applications into the iso image on the DVD (ie, spam filter applications, etc.)
I have managed to create a single bootable/customized DVD of RHEL 4. I am trying to do the same thing with the 64-bit version. Is there something unique that I need to do to make this iso?
I noticed in my xander file there are both 64-bit and 32-bit rpms? Are these necessary?
O/S upgrade to a level lower than the current Upgrade level
I received a server with RHEL es4u0 already installed in it. The application I need to install on this server is certified for RHEL es4u1 only.
Currently the current upgrade level on the RedHat website is es4u5.
Obviously, I cannot use up2date out of the box on the server because it will upgrade it to an uncertified level.
I have downloaded and burned the es4u1 cds. Short of reinstalling the o/s from scratch with these cds, does anyone know of a way to upgrade only to u1?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You can use the CD's to upgrade, the installer should provide an upgrade option.
Of yon can create a directory named something like RHEL4u1 for example and copy all the rpms form the CD's into this location. Install both the createrepo and yum packages from Dag's site;
Tried the yum approach but ran into trouble installing the yum rpm.
It required python-sqlite which in turn required libsqlite.so.0. I downloaded and installed the python-sqlite-src rpm but it was not there. Would you know where I could get the libsqlite.so.0 file or am I barking up the wrong tree?
FYI: for now it is a good idea to disable the CentOS repos or not use yum from CentOS but do install the listed sqlite and python rpm packages, these you should already have or you can get then from either the CentOS vault site(since you want to stay at the u1 level) or Dag's site;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.