<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>RE: Kickstart hangs when removing sendmail</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thanks for the suggestions guys. We're not installing the RH Postfix. We're using PostgreSQL not MySQL and the Postfix that ships with RH doesn't include support for Postgres.</FONT></P>

<P><FONT SIZE=2>I'm installing Postfix with Postgres support as part of the kickstart %post.</FONT>
</P>

<P><FONT SIZE=2>My problem is no matter what I try I can't not install sendmail when stick strictly to the %packages portion of the kickstart.</FONT></P>

<P><FONT SIZE=2>%packages --resolvedeps</FONT>
<BR><FONT SIZE=2>gcc</FONT>
<BR><FONT SIZE=2>make</FONT>
<BR><FONT SIZE=2>openssh</FONT>
<BR><FONT SIZE=2>openssh-clients</FONT>
<BR><FONT SIZE=2>openssh-server</FONT>
<BR><FONT SIZE=2>patch</FONT>
<BR><FONT SIZE=2>perl</FONT>
<BR><FONT SIZE=2>perl-CGI</FONT>
<BR><FONT SIZE=2>perl-DBI</FONT>
<BR><FONT SIZE=2>perl-HTML-Parser</FONT>
<BR><FONT SIZE=2>perl-libwww-perl</FONT>
<BR><FONT SIZE=2>perl-URI</FONT>
<BR><FONT SIZE=2>openssl</FONT>
<BR><FONT SIZE=2>openssl-perl</FONT>
<BR><FONT SIZE=2>rdate</FONT>
<BR><FONT SIZE=2>rpm-build</FONT>
<BR><FONT SIZE=2>rpmdb-redhat</FONT>
<BR><FONT SIZE=2>sharutils</FONT>
<BR><FONT SIZE=2>sudo</FONT>
<BR><FONT SIZE=2>telnet</FONT>
<BR><FONT SIZE=2>unzip</FONT>
<BR><FONT SIZE=2>wget</FONT>
<BR><FONT SIZE=2>up2date</FONT>
<BR><FONT SIZE=2>eject</FONT>
<BR><FONT SIZE=2>-sendmail</FONT>
</P>

<P><FONT SIZE=2>I know I set --resolvedeps, so something in there wants it (or maybe Anaconda itself simply wants it)</FONT>
</P>

<P><FONT SIZE=2>If I try ot remove it from %post, it sometimes never returns...</FONT>
</P>

<P><FONT SIZE=2>rpm -e sendmail --nodeps</FONT>
</P>

<P><FONT SIZE=2>Note the --nodeps, so I don't get the dependancy errors. Once Postfix is installed, those complaints don't mean a thing, it just works as expected.</FONT></P>

<P><FONT SIZE=2>So I tried the following trickery...</FONT>
</P>

<P><FONT SIZE=2>  RETURN=`rpm -e sendmail --nodeps& 2>&1 > /dev/null`</FONT>
<BR><FONT SIZE=2>  ilimit=60</FONT>
<BR><FONT SIZE=2>  isleep=1</FONT>
<BR><FONT SIZE=2>  for ((i=0 ; i < ilimit ; i++)); do</FONT>
<BR><FONT SIZE=2>    RETURN=`rpm -q sendmail | grep "not installed"`</FONT>
<BR><FONT SIZE=2>    if [ "$RETURN" ]; then</FONT>
<BR><FONT SIZE=2>      # Sendmail has finally been removed...</FONT>
<BR><FONT SIZE=2>      echo "   -> Sendmail has been removed"</FONT>
<BR><FONT SIZE=2>      break</FONT>
<BR><FONT SIZE=2>    fi</FONT>
<BR><FONT SIZE=2>  done</FONT>
</P>

<P><FONT SIZE=2>Haven't had time to test it yet, but the idea is if `rpm -e sendmail` never retrurns sometimes, I might as well spawn it as a background process and watch the `rpm -q sendmail` for the removal itself. (I noticed that when I get the hang, a reboot and login shows sendmail not installed)</FONT></P>

<P><FONT SIZE=2>Very frustrating, but I wouldn't care so much if Postfix didn't' need sendmail removed. (their docs claim so, and our testing indiciated some incompatibiltiies)</FONT></P>

<P><FONT SIZE=2>Thanks again for the help.</FONT>
</P>

<P><FONT SIZE=2>- Chris</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: kickstart-list-bounces@redhat.com [<A HREF="mailto:kickstart-list-bounces@redhat.com">mailto:kickstart-list-bounces@redhat.com</A>] On Behalf Of Edgar Chillón 'Chillux'</FONT>
<BR><FONT SIZE=2>Sent: January 28, 2005 12:32 PM</FONT>
<BR><FONT SIZE=2>To: Discussion list about Kickstart</FONT>
<BR><FONT SIZE=2>Subject: Re: Kickstart hangs when removing sendmail</FONT>
</P>
<BR>

<P><FONT SIZE=2>I dont remember if postfix requires a sendmail as a</FONT>
<BR><FONT SIZE=2>dependency but if not here is the solution:</FONT>
</P>

<P><FONT SIZE=2>In the ks.cfg in the package system:</FONT>
<BR><FONT SIZE=2>@ Base</FONT>
<BR><FONT SIZE=2>-mdam</FONT>
<BR><FONT SIZE=2>-sendmail</FONT>
</P>

<P><FONT SIZE=2>In the %post</FONT>
<BR><FONT SIZE=2>rpm -ihv postfix</FONT>
</P>

<P><FONT SIZE=2>If the postfix needs dependencys obviusly you have to</FONT>
<BR><FONT SIZE=2>install it fist.</FONT>
</P>

<P><FONT SIZE=2>Regards</FONT>
</P>

<P><FONT SIZE=2> --- Chris Mckenzie <Chris.McKenzie@entrust.com></FONT>
<BR><FONT SIZE=2>escribió: </FONT>
<BR><FONT SIZE=2>> Hi all.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> My kickstart occasionally hangs indefinitely</FONT>
<BR><FONT SIZE=2>> intermittedly when from my</FONT>
<BR><FONT SIZE=2>> %post I call:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>       rpm -e sendmail</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I subsequently install Postfix, and I absolutely</FONT>
<BR><FONT SIZE=2>> require Sendmail removed</FONT>
<BR><FONT SIZE=2>> before hand.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> It's inexplicable. Rpm never returns, the %post just</FONT>
<BR><FONT SIZE=2>> sits there.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Any ideas? I can't pipe STDERR, and the damn thing</FONT>
<BR><FONT SIZE=2>> never returns. When I do</FONT>
<BR><FONT SIZE=2>> get the hang, I'm already on TTY3, and none of the</FONT>
<BR><FONT SIZE=2>> other TTYs offer any</FONT>
<BR><FONT SIZE=2>> clues.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Thanks!!!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> - Chris</FONT>
<BR><FONT SIZE=2>> > _______________________________________________</FONT>
<BR><FONT SIZE=2>> Kickstart-list mailing list</FONT>
<BR><FONT SIZE=2>> Kickstart-list@redhat.com</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2><A HREF="https://www.redhat.com/mailman/listinfo/kickstart-list" TARGET="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</A> </FONT>
</P>

<P><FONT SIZE=2>=====</FONT>
<BR><FONT SIZE=2>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</FONT>
<BR><FONT SIZE=2>Edgar Alberto Chillón Escárcega</FONT>
<BR><FONT SIZE=2>Mobile: 04455-1951-9194</FONT>
<BR><FONT SIZE=2>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</FONT>
<BR><FONT SIZE=2>PublicKeyID: 0x584CF620 [DH/DSS]  <A HREF="http://keyserver.noreply.org/" TARGET="_blank">http://keyserver.noreply.org/</A> </FONT>
<BR><FONT SIZE=2>FingerPrint: 1EDE EF26 C6AA 17DC 1A59  97C8 5270 1942 584C F620</FONT>
<BR><FONT SIZE=2>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</FONT>
</P>

<P><FONT SIZE=2>_________________________________________________________</FONT>
<BR><FONT SIZE=2>Do You Yahoo!?</FONT>
<BR><FONT SIZE=2>La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. <A HREF="http://net.yahoo.com.mx" TARGET="_blank">http://net.yahoo.com.mx</A></FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Kickstart-list mailing list</FONT>
<BR><FONT SIZE=2>Kickstart-list@redhat.com <A HREF="https://www.redhat.com/mailman/listinfo/kickstart-list" TARGET="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</A></FONT>
</P>

</BODY>
</HTML>