[PATCH] Trying to fix yum thread issue and rpm chroot

Brian C. Lane bcl at redhat.com
Fri Mar 22 23:49:55 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

I'm stuck on this again.

I've confirmed (in a previous test) that I can write the yum transaction file
out and use execWithRedirect and a couple parameters to run the yum cli and
execute it. That actually worked and it installed a minimal system that booted.

That seems like a hack, although much less of one now that I've spent time
bashing my head against yum/rpm library problems.

This current patch saves the transaction and then reloads it in a separate
thread (using multiprocessing). What should happen is that it loads it and executes
it using our RPMCallback class to retry downloads and track progress.

What actually happens is that it loads it, appears to prepare the transactiion
and the callback gets the first call, a RPMCALLBACK_INST_OPEN_FILE call, logs
that it got the call and then rpm, for reasons that I can't figure out, kills
the process. I don't get any of my extra logging that I've tried to add and
nothing past the "callback: log entry" It isn't catching any exceptions either.


There's an updates.img at http://bcl.fedorapeople.org/updates/yum_thread.img

This can be used with the 19.12 boot.iso from http://alt.fedoraproject.org/pub/alt/anaconda/

Ideas welcome :)

Brian C. Lane (1):
  Execute the yum transaction in another process

 pyanaconda/install.py              |   4 +-
 pyanaconda/packaging/yumpayload.py | 336 ++++++++++++++++++++++++++-----------
 2 files changed, 238 insertions(+), 102 deletions(-)

-- 
1.8.1.4



More information about the anaconda-patches mailing list