Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-06-2009, 11:47 AM   #1
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Rep: Reputation: 20
How to modify stage2.img?

So, I mount stage2, copy the contents with tar, make my changes, and create a new stage2.img Whenever I do this, the resulting stage2.img does not work... after starting the install, I get:

The Red Hat Enterprise Linux Server CD was not found in any of your CDROM drives. Please insert the Red Hat Enterprise Linux Server CD and press OK to retry.

However, if I go through all of the steps without changing anything, it works.

I'm trying to fix the bug in RHEL5's anaconda that ejects the DVD before kickstart can run %post Several people have made several suggestions about reversing lines, or commenting lines out. Every single change I try results in a non-working image. I have to assume that there's some problem with file permissions or something (even though they look the same). I don't know what else it could be.

Again... if I go through this process, and do not edit any files, my image works. If I touch any file in any way, the image does not work. I need to know the correct way to edit the contents of stage2.img, preferably the change that will fix the Red Hat bug.
Old 02-08-2009, 07:38 PM   #2
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
You should be using mkinitrd. Are you?


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add new cciss driver module to initrd.img ,stage2.img kunalroy2002 Linux - Software 4 09-25-2007 12:09 AM
What is stage2.img AlanL Fedora 1 04-01-2007 08:32 AM
[php]Reading url [img] and [/img] hylke Programming 13 08-23-2004 01:58 PM
.img burner or way to boot from a .img American Psycho Linux - Software 4 03-24-2004 06:40 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

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