<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff size=2>So I 
sort of solved it last week. This is an FYI I suppose.</FONT></SPAN></DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff 
size=2>Nothing worked, kickstart -sendmail, rpm -e sendmail, etc... I had to 
actually start sendmail, then kill -killall sendmail, THEN rpm -e sendmail. It's 
a tatoo, and I just sanded it off.</FONT></SPAN></DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff size=2>This 
is followed with the existing Postfix install with support for 
Postgres.</FONT></SPAN></DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff size=2>Thanks 
for the suggestions.</FONT></SPAN></DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519143123-09022005><FONT face=Arial color=#0000ff size=2>- 
Chris</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  kickstart-list-bounces@redhat.com [mailto:kickstart-list-bounces@redhat.com] 
  <B>On Behalf Of </B>Chris Mckenzie<BR><B>Sent:</B> January 31, 2005 2:59 
  PM<BR><B>To:</B> 'Discussion list about Kickstart'<BR><B>Subject:</B> RE: 
  Kickstart hangs when removing sendmail<BR><BR></FONT></DIV>
  <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></BLOCKQUOTE></BODY></HTML>