<br><br><div><span class="gmail_quote">On 8/12/06, <b class="gmail_sendername">Johnny Hughes</b> <<a href="mailto:mailing-lists@hughesjr.com">mailing-lists@hughesjr.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 2006-08-11 at 15:49 +0100, Ron Yorston wrote:<br>> "Eduardo Grosclaude" <<a href="mailto:eduardo.grosclaude@gmail.com">eduardo.grosclaude@gmail.com</a>> wrote:<br>> >Great! I was just looking for this! Unfortunately there seems to be
<br>> >something missing: by the time we run the first yum command, there's no<br>> >distroverpkg package installed under $LIVE to query for $releasever.<br>> >---------------<br>> >Should the user install centos-release RPM with prefix equal to $LIVE
<br>> >beforehand?<br>> >Or is there any other easy but correct way to pass this variable to yum?<br>><br>> I got around this by editing my yum repo files to replace $releasever<br>> with 4.  Which is horrible, so I too would like to know if there's a
<br>> better way.<br>><br>> I still can't get it to work, though.  I do get about 90MB of stuff<br>> installed, as promised, but there are lots of '%post(...) scriptlet<br>> failed' messages during the installation.  Although many things are
<br>> installed into the chroot area there are clearly some things missing.<br>> The first command I typed in the chroot was 'ls', but /bin/ls isn't<br>> there even though, according to yum.log, coreutils was installed.
<br>><br>> Actually, I was able to scroll back far enough to see this during the<br>> installation:<br>><br>> error: %pre(coreutils-5.2.1-31.2.i386) scriptlet failed, exit status 255<br>> error:   install: %pre scriptlet failed (2), skipping 
coreutils-5.2.1-31.2<br>><br>> Ron<br><br>If you can install centos-release into the chroot, it should then return<br>4.<br><br>Or editing the yum repo file and addding 4 is OK.</blockquote><div><br>
I downloaded the latest centos-release rpm and tried to install it into
$LIVE with rpm relocate feature. This has to be done with --force as
rpm thinks it is already installed. Despite the rpm being "no
relocatable" as per "rpm -qpi", this works, populating $LIVE/etc and
friends. <br>
However, after this, yum keeps
giving the same error as before. <br>
</div></div><br>
Brutally replacing $releasever by "4" in CentOS-Base.repo seems to convince yum to work.<br>
But then doing "yum -c $LIVE/etc/yum.conf --installroot=$LIVE install
centos-release" proceeds to _install_ the same package that rpm had
previously _installed_... hmmmm... :P<br>

<br>-- <br>Eduardo Grosclaude<br>Universidad Nacional del Comahue<br>Neuquen, Argentina