[Yum] chroot revisited...
seth vidal
skvidal at phy.duke.edu
Sun Aug 14 04:51:36 UTC 2005
On Sat, 2005-08-13 at 21:21 -0700, Bobby Kashani wrote:
> I think that Seth, explained this to me a while ago but I seem to have
> forgotten why it happens.
>
> Doesn't work:
>
> yum -y --installroot=/home/bob/mychroot install openssl
>
> error: %post(openssl-0.9.7f-7.686) scriptlet failed, exit status 255
>
> Does work:
>
> rpm --root /home/bob/mychroot -Uvh --nodeps --force openssl
>
> Why can't yum execute the pre/post scriptlets when installing into a
> chroot but RPM can?
>
> The reason I ask is this:
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=165264
>
I noted it in the bug - but you don't have /proc or /dev mounted and
it's one of those that's causing the scriptlet errors.
mock does those mounts specifically for this reason.
-sv
More information about the Yum
mailing list