LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to modify stage2.img? (https://www.linuxquestions.org/questions/linux-software-2/how-to-modify-stage2-img-702767/)

jnojr 02-06-2009 11:47 AM

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.

blacky_5251 02-08-2009 07:38 PM

You should be using mkinitrd. Are you?


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