Bug 104503 - anaconda-runtime buildinstall script fails to generate valid stage2 & netstg2 images (corrupted cramfs)
Summary: anaconda-runtime buildinstall script fails to generate valid stage2 & netstg2...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 9
Hardware: i586
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-16 15:43 UTC by Ciupitu Cristian
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-02 22:42:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Ciupitu Cristian 2003-09-16 15:43:25 UTC
Description of problem:
	The /usr/lib/anaconda-runtime/buildinstall script that is used to generate the stage2.img and netstg2.img files, manages to create them, but they ar corrupted and installing from the customized CDs fails (it says that the rh cd is not inside).  They should be valid cramfs images, but fsck.cramfs shows they are corrupted.

Version-Release number of selected component (if applicable):
	anaconda-runtime-9.0-4 from RedHat 9

How reproducible:
	Easy. 

Steps to Reproduce:
	Just set RHBASE to the directory holding the "fully exploded tree" of RedHat 9 and run:
/usr/lib/anaconda-runtime/buildinstall --comp dist-9 --pkgorder $RHBASE/redhat/pkgorder.txt --version 9 --product "Red Hat Linux" --release "Custom build 1.0" $RHBASE/redhat/i386 
    
Actual results:
	It builds corrupted netstg2.img and stage2.img. I've run a fsck.cramfs on them and it tells they're corrupted.

Expected results:
	Valid cramfs images.

Additional info:
	I've run that comand to build my custom/updated CD's; the full set of commands is this (based on RedHat-CD-HOWTO and http://www.techonthenet.com/linux/rh9_update.htm):

COMPS=
RHBASE=
cd $COMPS && make && /usr/lib/anaconda-runtime/genhdlist $RHBASE/redhat/i386  &&  /usr/lib/anaconda-runtime/pkgorder $RHBASE/redhat/i386 i386 | tee $RHBASE/redhat/pkgorder.txt  &&  sed '/<\/comps>/d' comps-gingin.xml > comps-tmp.xml  &&  /usr/share/comps-extras/getfullcomps.py comps.xml $RHBASE/redhat i386 >> comps-tmp.xml  &&  echo '</comps>' >> comps-tmp.xml  &&  cp -f comps-tmp.xml $RHBASE/redhat/i386/RedHat/base/comps.xml  &&  /usr/lib/anaconda-runtime/buildinstall --comp dist-9 --pkgorder $RHBASE/redhat/pkgorder.txt --version 9 --product "Red Hat Linux" --release "Custom build 1.0" $RHBASE/redhat/i386    &&    RELEASE="RedHat 9 (Shrike) with updates to $(date '+%Y-%M-%d%H:%m')"  &&  /usr/lib/anaconda-runtime/splitdistro --fileorder $RHBASE/redhat/pkgorder.txt --release "$RELEASE" $RHBASE/redhat i386   &&  rm -f $RHBASE/i386-disc1/RedHat/base/hdlist*  &&  /usr/lib/anaconda-runtime/genhdlist --withnumbers --fileorder $RHBASE/redhat/pkgorder.txt $RHBASE/redhat/i386-disc[123]

Comment 1 Jeremy Katz 2003-10-02 22:42:03 UTC
This works fine for me here and is exactly what is used to compose trees. 
fsck.cramfs does warn that it's an old version of the filesystem, but that's
just due to the version of mkcramfs we ship.


Note You need to log in before you can comment on or make changes to this bug.