From romain.jacquet at telespazio.com Tue Oct 11 08:34:15 2016 From: romain.jacquet at telespazio.com (Jacquet Romain) Date: Tue, 11 Oct 2016 08:34:15 +0000 Subject: Kickstart hangs on at the end of postinstall In-Reply-To: <1AFBD1E0-D76C-4819-98F1-F077EDDA2910@mellanox.com> References: <201609290903.u8T93heB023644@int-mx14.intmail.prod.int.phx2.redhat.com> , <8700A39C59BE694BAA2BFFB283ABE113BF851E3C@ittrowmx00002> <1AFBD1E0-D76C-4819-98F1-F077EDDA2910@mellanox.com> Message-ID: <8700A39C59BE694BAA2BFFB283ABE113BF853B16@ittrowmx00002> Thank you for the nice trick of the ?bash ?i?. I will also try to strace the process. For the moment, the problem is solved by kill the faulty daemon in the kickstart. But I would like to be able to understand what kind of bad things the daemon does. Regards. De : Noam Davida [mailto:noamda at mellanox.com] Envoy? : vendredi 30 septembre 2016 16:27 ? : Discussion list about Kickstart Objet : Re: Kickstart hangs on at the end of postinstall Can you use "ps" to see what process is stuck? Strace it and see why it is stuck exactly? What happens if you run the rpm command after install at first boot? I love using bash -i at post stage and debug my script... Try running the command and see what is the output, whats getting in your way. Also as a workaround, if you can hunt down the nutty pid that, you can kill it in post stage, and hopefully anaconda will finish. Thanks, Noam Sent from my iPhone On 30 ????? 2016, at 15:47, Jacquet Romain > wrote: Hi Andrew, Thank you very much for answer. Yes, I?m logging the post-install with ?%post --logfile /var/log/ks-post.log?. When the installer is stuck I can see the ouput in /mnt/sysimage/var/log/ks-post.log. The extract looks like: [?] // very long stuff rpm ?Uv my-daemon-ftp.rpm // faulty RPM [?] // very long stuff again End of postinstallation // echo at the end the installation So the daemon installation does not stop the post-installation. Another workaround is to stop the daemon just after the update in the kickstart file. So it is like anaconda cannot restart with the daemon running. Do you have another idea? Is it possible to have a more detailed log of anaconda? Best regards. De : Andrew Simpson [mailto:simpsonar77 at gmail.com] Envoy? : jeudi 29 septembre 2016 15:27 ? : Discussion list about Kickstart Objet : Re: Kickstart hangs on at the end of postinstall 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 the 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 > wrote: Hello everybody, I?m struggling to find a bug caused by a RPM update in the postinstall section. The line looks like: ?rpm ?Uvh my-daemon-package? and update a daemon. I?m using a CentOS 6.6 and its anaconda 13.21.229. 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 ? 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 message in error, you are 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 forbidden. Thank you in advance for your cooperation. Please consider the environment before printing this email. _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: