John Newbigin jnewbigin@ict.swin.edu.au wrote:
Ron Yorston wrote:
"Eduardo Grosclaude" eduardo.grosclaude@gmail.com wrote:
Great! I was just looking for this! Unfortunately there seems to be something missing: by the time we run the first yum command, there's no distroverpkg package installed under $LIVE to query for $releasever.
Should the user install centos-release RPM with prefix equal to $LIVE beforehand? Or is there any other easy but correct way to pass this variable to yum?
My yum config does not use $releasever which is probably why mine works. A simple sed should be able to trick it up in your yum config, or copy the release file into the chroot before running yum, that is probably best. I'll try that out and update the docs.
Or fetch the centos-release RPM and run:
rpm -ivh --nodeps --root $LIVE centos-release-4-3.2.i386.rpm
I got around this by editing my yum repo files to replace $releasever with 4. Which is horrible, so I too would like to know if there's a better way.
..
Actually, I was able to scroll back far enough to see this during the installation:
error: %pre(coreutils-5.2.1-31.2.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping coreutils-5.2.1-31.2
You should not get any errors at this stage. You must mount /dev /proc and /sys or your install will fail.
Well, I do get errors. I've tried this several times on three machines, including one that was freshly installed with CentOS 4.3 for just this purpose. Every time I get error in %pre and %post, and the resulting installation is incomplete.
See attachment.
Ron