[Yum] Re: yum in kickstart %post and HP Insight Mgr
Harry Hoffman
hhoffman at ip-solutions.net
Tue May 31 21:14:14 UTC 2005
would this work?
yum groupinstall Insight-Manager >> /dev/tty3 2>&1
--Harry
Brian Long wrote:
> On Tue, 2005-05-31 at 21:02 +0100, Philip Rowlands wrote:
>
>>On Tue, 31 May 2005, Brian Long wrote:
>>
>>
>>>I'm trying to use yum in the %post section of kickstart. With well-
>>>written RPMs, this works great. However, I've come across the lovely HP
>>>Insight Manager RPMS (hpasm, hprsm, etc) which seem to run "service
>>>hpasm start" during the RPM postinstall (yuck). This wouldn't be too
>>>bad if the daemons actually disassociated from the running terminal.
>>
>>Don't let it have them:
>>
>>%post
>>yum groupinstall Insight-Manager < /dev/null > /dev/null 2>&1
>
>
> I tried a variation of this so I could keep things logged (in order to
> debug possible problems in the future):
>
> chvt 3
> yum groupinstall Insight-Manager </dev/null | tee -a /var/log/postinstall 2>&1
> chvt 1
>
> hpasmd is still tied to tty1. If I kill the "tee" process, the %post
> finishes running just fine. Any ideas how to keep a log of all of yum's
> output and display it in parallel instead of using tee? I know about
> yum.log, but I was hoping to grab possible errors to the postinstall
> log.
>
> I guess I could run "chvt 3; (tail -f /var/log/postinstall &)" and then
> run the "yum >> /var/log/postinstall 2>&1".
>
> Any other ideas would be appreciated. Thanks for your help!
>
> /Brian/
>
More information about the Yum
mailing list