Kickstart hangs when removing sendmail

Chris Mckenzie Chris.McKenzie at entrust.com
Mon Jan 31 19:58:58 UTC 2005


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.

I'm installing Postfix with Postgres support as part of the kickstart %post.

My problem is no matter what I try I can't not install sendmail when stick
strictly to the %packages portion of the kickstart.

%packages --resolvedeps
gcc
make
openssh
openssh-clients
openssh-server
patch
perl
perl-CGI
perl-DBI
perl-HTML-Parser
perl-libwww-perl
perl-URI
openssl
openssl-perl
rdate
rpm-build
rpmdb-redhat
sharutils
sudo
telnet
unzip
wget
up2date
eject
-sendmail

I know I set --resolvedeps, so something in there wants it (or maybe
Anaconda itself simply wants it)

If I try ot remove it from %post, it sometimes never returns...

rpm -e sendmail --nodeps

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.

So I tried the following trickery...

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

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)

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)

Thanks again for the help.

- Chris

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Edgar Chillón
'Chillux'
Sent: January 28, 2005 12:32 PM
To: Discussion list about Kickstart
Subject: Re: Kickstart hangs when removing sendmail


I dont remember if postfix requires a sendmail as a
dependency but if not here is the solution:

In the ks.cfg in the package system:
@ Base
-mdam
-sendmail

In the %post
rpm -ihv postfix

If the postfix needs dependencys obviusly you have to
install it fist.

Regards

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

=====
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Edgar Alberto Chillón Escárcega
Mobile: 04455-1951-9194
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
PublicKeyID: 0x584CF620 [DH/DSS]  http://keyserver.noreply.org/ 
FingerPrint: 1EDE EF26 C6AA 17DC 1A59  97C8 5270 1942 584C F620
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes.
http://net.yahoo.com.mx

_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20050131/0733d77a/attachment.htm>


More information about the Kickstart-list mailing list