Kickstart hangs when removing sendmail
Edgar Chillón 'Chillux'
e_chillon at yahoo.com.mx
Fri Feb 11 16:11:31 UTC 2005
I had the same problem, you can not uninstall sendmail
if you dont unistall firt the mdam. So in the kikstart
you must have to put:
-mdam
-sendmail
Expect to solve your problem.
Regards.
--- Chris Mckenzie <Chris.McKenzie at entrust.com>
escribió:
> So I sort of solved it last week. This is an FYI I
> suppose.
>
> 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.
>
> This is followed with the existing Postfix install
> with support for
> Postgres.
>
> Thanks for the suggestions.
>
> - Chris
>
> -----Original Message-----
> From: kickstart-list-bounces at redhat.com
> [mailto:kickstart-list-bounces at redhat.com] On Behalf
> Of Chris Mckenzie
> Sent: January 31, 2005 2:59 PM
> To: 'Discussion list about Kickstart'
> Subject: RE: Kickstart hangs when removing sendmail
>
>
>
> 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
> <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
>
<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/
> <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 <http://net.yahoo.com.mx>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
>
https://www.redhat.com/mailman/listinfo/kickstart-list
>
<https://www.redhat.com/mailman/listinfo/kickstart-list>
>
>
> > _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
>
https://www.redhat.com/mailman/listinfo/kickstart-list
=====
Saludos.
________________________________
Edgar Alberto Chillón Escárcega
Out Sourcer Pfizer S.A. de C.V.
Security Consultant - México DF
Tel: (55) 59 81 85 00 ext. 9060
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
More information about the Kickstart-list
mailing list