Re: Kickstart hangs on at the end of postinstall
Masahiro Matsuya <[email protected]> Fri, 30 Sep 2016 10:38:13 +0900
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CADjNeK2WYwL4L-i0vLr2kq-GkSiozYmkniy1dKPjpzxG1c3Nfw@mail.gmail.com> |
--===============3630262691061813538== Content-Type: multipart/alternative; boundary=001a1147adc4cc9f00053dafa593 --001a1147adc4cc9f00053dafa593 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In trying logging with %post --log=3D, it's useful to add 'set -x' in the head of the script part. It's worth to check /mnt/sysimage/root/install.log since it may include the scriptlet error in spec. Masahiro Matsuya On Thu, Sep 29, 2016 at 10:27 PM, Andrew Simpson <[email protected]> wrote: > are you logging the post section that you're installing it in? Assuming > you're seeing the logs/output and this is the last message, it's probably > not hanging on that RPM. It's probably hanging on the next command in th= e > post section, which hasn't been printed out yet. comment out the RPM > install portion and see what's hanging. If it is indeed hanging on the > rpm, then there's probably an issue with one of the scriptlets in the rpm > spec file. The were likely be a log of that somewhere under /tmp or > /var/log/anaconda/ > > Andrew Simpson > > On Thu, Sep 29, 2016 at 5:03 AM, Jacquet Romain < > [email protected]> wrote: > >> Hello everybody, >> >> I=E2=80=99m struggling to find a bug caused by a RPM update in the >> postinstall section. The line looks like: =E2=80=9Crpm =E2=80=93Uvh my-d= aemon-package=E2=80=9D and >> update a daemon. I=E2=80=99m using a CentOS 6.6 and its anaconda 13.21.2= 29. >> >> With this line in the kickstart, anaconda never ends. The only way to >> stop anaconda is to use the shell in the virtual terminal (Alt+Ctrl+F2) = and >> kill the daemon. It is like anaconda is waiting for something to be >> released. Do you know what could prevent anaconda from rebooting? >> >> >> >> Best regards. >> >> >> >> >> >> -- Romain JACQUET -- >> >> IT Infrastructure manager >> >> Phone : 05 34 35 21 46 >> >> Telespazio France >> >> 26 Avenue JF Champollion >> >> B.P.52309 >> >> 31023 TOULOUSE Cedex 1 =E2=80=93 France >> >> >> >> >> WARNING: This message contains confidential and/or proprietary >> information which may be subject to privilege or immunity and which is >> intended for the use of its addressee only. Should you receive this mess= age >> in error, you are kindly requested to inform the sender and to definitiv= ely >> remove it from any paper or electronic format. Any other use of this e-m= ail >> is strictly forbidden. Thank you in advance for your cooperation. >> >> Please consider the environment before printing this email. >> >> _______________________________________________ >> Kickstart-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > > _______________________________________________ > Kickstart-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-list > --001a1147adc4cc9f00053dafa593 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>In trying logging with %post --log=3D, it's usefu= l to add 'set -x' in the head of the script part. It's worth to= check /mnt/sysimage/root/install.log since it may include the scriptlet er= ror in spec.<br><br></div>Masahiro Matsuya<br></div><div class=3D"gmail_ext= ra"><br><div class=3D"gmail_quote">On Thu, Sep 29, 2016 at 10:27 PM, Andrew= Simpson <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" tar= get=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote c= lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;= padding-left:1ex"><div dir=3D"ltr">are you logging the post section that yo= u're installing it in?=C2=A0 Assuming you're seeing the logs/output= and this is the last message, it's probably not hanging on that RPM.= =C2=A0 It's probably hanging on the next command in the post section, w= hich hasn't been printed out yet. =C2=A0comment out the RPM install =C2= =A0portion and see what's hanging.=C2=A0 If it is indeed hanging on the= rpm, then there's probably an issue with one of the scriptlets in the = rpm spec file.=C2=A0 The were likely be a log of that somewhere under /tmp = or /var/log/anaconda/</div><div class=3D"gmail_extra"><br clear=3D"all"><di= v><div data-smartmail=3D"gmail_signature"><div dir=3D"ltr">Andrew Simpson</= div></div></div> <br><div class=3D"gmail_quote"><div><div class=3D"h5">On Thu, Sep 29, 2016 = at 5:03 AM, Jacquet Romain <span dir=3D"ltr"><<a href=3D"mailto:romain.j= [email protected]" target=3D"_blank">[email protected]</a><= wbr>></span> wrote:<br></div></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><= div class=3D"h5"> <div link=3D"blue" vlink=3D"purple" lang=3D"FR"> <div> <p class=3D"MsoNormal"><span lang=3D"EN-US">Hello everybody,<u></u><u></u><= /span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0=C2=A0=C2=A0 I=E2=80=99m = struggling to find a bug caused by a RPM update in the postinstall section.= The line looks like: =E2=80=9Crpm =E2=80=93Uvh my-daemon-package=E2=80=9D = and update a daemon. I=E2=80=99m using a CentOS 6.6 and its anaconda 13.21.= 229.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">With this line in the kickstart= , anaconda never ends. The only way to stop anaconda is to use the shell in= the virtual terminal (Alt+Ctrl+F2) and kill the daemon. It is like anacond= a is waiting for something to be released. Do you know what could prevent anaconda from rebooting?<u></u><u></u></spa= n></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0=C2=A0 Best regards.<u></= u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal">-- Romain JACQUET --<u></u><u></u></p> <p class=3D"MsoNormal">IT Infrastructure manager<u></u><u></u></p> <p class=3D"MsoNormal">Phone : 05 34 35 21 46<u></u><u></u></p> <p class=3D"MsoNormal">Telespazio France<u></u><u></u></p> <p class=3D"MsoNormal"><span>26 Avenue JF Champollion <u></u><u></u></span></p> <p class=3D"MsoNormal"><span>B.P.52309<u></u><u></u></span></p> <p class=3D"MsoNormal"><span>31023 TOULOUSE Cedex 1 =E2=80=93 France<u></u>= <u></u></span></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> <br><br> WARNING: This message contains confidential and/or proprietary information = which may be subject to privilege or immunity and which is intended for the= use of its addressee only. Should you receive this message in error, you a= re kindly requested to inform the sender and to definitively remove it from= any paper or electronic format. Any other use of this e-mail is strictly f= orbidden. Thank you in advance for your cooperation. <br><br> Please consider the environment before printing this email.</div> <br></div></div>______________________________<wbr>_________________<br> Kickstart-list mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Kickstart-li= [email protected]</a><br> <a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n= oreferrer" target=3D"_blank">https://www.redhat.com/mailman<wbr>/listinfo/k= ickstart-list</a><br></blockquote></div><br></div> <br>______________________________<wbr>_________________<br> Kickstart-list mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</a><= br> <a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n= oreferrer" target=3D"_blank">https://www.redhat.com/<wbr>mailman/listinfo/k= ickstart-<wbr>list</a><br></blockquote></div><br></div> --001a1147adc4cc9f00053dafa593-- --===============3630262691061813538== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list --===============3630262691061813538==--