[Yum] Re: yum in kickstart %post and HP Insight Mgr
Philip Rowlands
phr at doc.ic.ac.uk
Tue May 31 20:02:27 UTC 2005
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 notice yum install the group "yum groupinstall Insight-Manager" and
>yum exits, but the rest of the kickstart %post doesn't run. If I look
>at the hpasmd processes, they're tied to tty1 and owned by init :( If
>I hit Alt-F2 in kickstart and chroot /mnt/sysimage, service hpasm stop,
>the rest of the kickstart %post finishes. I also strace'd the /tmp/ks-
>script process and it's stuck at waitpid(-1, )
If that doesn't work, then lay a trap:
%post
( while ! killall -q hpasm; do sleep 3; done & )
yum groupinstall Insight-Manager
Hope at least one of these works... :)
Cheers,
Phil
More information about the Yum
mailing list