LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-29-2008, 05:48 AM   #1
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Rep: Reputation: 1
Need help to remaster RHEL5 with added RPMs


I've been searching everywhere I can to find some info about remastering RHEL5, with additional RPMs to be added to the new ISO.

So far, all I've found is that genhdlist has been dropped from RHEL5 in favor of yum and createrepo. But I don't know enough about how yum and createrepo replaces genhdlist (to rebuild the hdlist files).

I've searched here, but all the references I found to remastering are out-of-date and don't help with RHEL5.

Any pointers to tutorials, hints, or specific steps would be greatly appreciated.

Thanks in advance!
 
Old 01-30-2008, 03:59 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe this provides an outline. Start at " Understanding Package Metadata".
 
Old 01-31-2008, 06:07 AM   #3
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
Maybe this provides an outline. Start at " Understanding Package Metadata".
Thanks! This is some great info I had not seen yet, and presented well.

The only thing I'm still stuck at, is regenerating the hdlist/hdlist2 files. RHEL5 no longer includes the genhdlist program in the anaconda distribution.

From the document above:
Quote:
The hdlists are used only by anaconda. It should get migrated to use the repodata files for installs
Does anyone know if this is the case for RHEL5 w/anaconda-11.1.2.87-1 ?

I haven't tried burning a new DVD yet, without updating the hdlist files. I didn't want to start burning DVDs unless I have some confidence I'm not wasting a stack of blank media.

I may try burning one or two today to find out if I need the hdlist files.

Thanks again for the info.
 
Old 01-31-2008, 07:03 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe this centos.org forum thread?
 
Old 01-31-2008, 07:07 AM   #5
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
Maybe this centos.org forum thread?
Aha!

Quote:
You don't need to run pkgorder or genhdlist any more, the only "trick" is to make sure that you run
createrepo from the directory _above_ the one with the RPMs in, so that the repository metadata
files have location hrefs of the form CentOS/package-name.rpm rather than just package-name.rpm
(anaconda looks for the RPMs as /mnt/source/$location during the install).
Thank you! That makes sense now!!
 
1 members found this post helpful.
Old 01-31-2008, 08:15 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
When you're done, please post your steps as a short "HOWTO" here? TIA
 
Old 02-01-2008, 03:49 AM   #7
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
When you're done, please post your steps as a short "HOWTO" here? TIA
That's a deal!

While I'm not new to Linux, I am a LinuxQuestions.org newbie. The way I understand it, I post the tutorial here, then a moderator will approve/move it to the Tutorials section. Is that accurate?

My first DVD failed; the added RPMs did not get installed. I've got a couple of ideas and will be trying them today.
 
Old 02-01-2008, 05:47 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No, I just meant "post your steps here" as not to scare you off writing a tutorial ;-p Tutorials are handled separately from posts, if you *do* want to write a tutorial (excellent!) you can submit it here: http://www.linuxquestions.org/questions/sendmessage.php
 
Old 02-06-2008, 07:40 AM   #9
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
No, I just meant "post your steps here" as not to scare you off writing a tutorial ;-p Tutorials are handled separately from posts, if you *do* want to write a tutorial (excellent!) you can submit it here: http://www.linuxquestions.org/questions/sendmessage.php
Still working on this. Other work is getting in the way.

I am planning to write the tutorial. In fact, most of it's done because I've been documenting what I do (for the rest of my team) and is a great starting point for the tutorial.

Last edited by amemait; 02-06-2008 at 09:04 AM.
 
Old 02-06-2008, 03:48 PM   #10
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by amemait View Post
Still working on this. Other work is getting in the way.
And Avocent KVM over IP does NOT work with DVD ISOs!

I was having massive problems with ISOs I created when I mounted them as virtual media on our Avocent KVM. Well... They don't support DVD media, neither physical media nor ISOs.

I believe I'll have this worked out quickly now that I know where the problem is. The problem wasn't how I created the ISO; it was the Avocent KVM corrupting the data from the virtual media.
 
Old 02-06-2008, 04:52 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by amemait View Post
The problem wasn't how I created the ISO; it was the Avocent KVM corrupting the data from the virtual media.
That's a sad way to find out. I'd hammer their support for a fix. Especially since they do support CDR and external USB devices.
 
Old 02-11-2008, 03:01 PM   #12
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
That's a sad way to find out. I'd hammer their support for a fix. Especially since they do support CDR and external USB devices.
One of the guys here says that Avocent has a firmware fix (issued this month) that's supposed to fix this. We'll see. In the meantime, struggling on. My DVD produced an error related to the additional packages that I'm tracking down now.
 
Old 03-03-2008, 05:20 PM   #13
danpcfl
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
same problem(i think) remastering fc7

i seem to be having the same problem with createrepo
can't seem to come up with the correct options for paths to be resolved
correctly - could you please post the command(s) you did?
thanks!
 
Old 03-04-2008, 02:08 PM   #14
amemait
LQ Newbie
 
Registered: Jan 2008
Location: Texas
Distribution: Red Hat, Fedora, CentOS, Slackware, Mint, Ubuntu, +
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by danpcfl View Post
i seem to be having the same problem with createrepo
can't seem to come up with the correct options for paths to be resolved
correctly - could you please post the command(s) you did?
thanks!
I'm still having problems building a successful ISO.

I did, however, use full paths to resolve everything. At least createrepo runs without generating any errors.

cd ${CDBASE}
createrepo --baseurl="${BASEURL}" -o . -g ${COMPSDIR}/comps.xml ${RPMDIR}

where:
CDBASE is the base directory for the content.
BASEURL is the "media://#######.######" from the .discinfo file on the first CD.
COMPSDIR is where you will put comps.xml.
RPMDIR is the directory where the RPMs reside.

Note that the output directory (-o .) is the CD base.

Unfortunately, I've had to put this on hold a little while 'cause we recently had two of our UNIX admins resign, and the workload is getting a bit heavier. :-(
 
Old 03-05-2008, 07:52 AM   #15
danpcfl
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Thanks for the response
I tried the same createrepo as you mentioned (as well as many others)
and could not get it to put the Fedora directory in the href no matter
what i tried
the install fails because it can't find any rpm files since it isn't looking
in the Fedora subdirectory
the only fix i could com up was:
unzip the primary.xml.gz
edit all entrys of href to look like
href="Fedora/packagename.rpm"
compute a new sha1sum
zip the file
compute a zipped sha1sum
find the date of the new primary.xml.gz file (as time since epoch)
and finally edit the repomod.xml file and replace the
original 2 checksums and timestamp with the new ones

seems a bit much ... must be an easier way - but this did work
the version of createrepo is 0.4.9 (for fc7 & fc8)
is there something wrong with it, or am i still using it incorrectly ?
the duke linux site has newer versions, but i was a little leary of trying to update the one that comes with fc7/8
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPMs for rhel5 akhil.mud Linux - Software 2 11-05-2007 08:58 AM
Remaster for me please? darrelljon MEPIS 32 06-23-2007 09:29 AM
Remaster or not? rembot Linux - General 9 07-04-2006 08:43 PM
remaster distro jocom Linux - General 2 05-17-2006 02:39 AM
Remaster Linux steve8679 Linux - Distributions 1 12-13-2005 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:21 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