On Tue, Mar 12, 2013 at 8:38 AM, Personal Técnico <span dir="ltr"><<a href="mailto:tecnicos@caos.uab.es" target="_blank">tecnicos@caos.uab.es</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Yes, my kickstart file includes a $SNIPPET('kickstart_done'):<br>
<br>
[...]<br>
%post<br>
$SNIPPET('log_ks_post')<br>
# Start yum configuration<br>
$yum_config_stanza<br>
# End yum configuration<br>
$SNIPPET('post_install_kernel_options')<br>
$SNIPPET('post_install_network_config')<br>
$SNIPPET('func_register_if_enabled')<br>
$SNIPPET('puppet_register_if_enabled')<br>
$SNIPPET('download_config_files')<br>
$SNIPPET('koan_environment')<br>
$SNIPPET('redhat_register')<br>
$SNIPPET('cobbler_register')<br>
# Enable post-install boot notification<br>
$SNIPPET('post_anamon')<br>
# Start final steps<big><b><br>
</b><b>$SNIPPET('kickstart_done')</b></big><br>
# End final steps<br>
<br>
# Testing new config<br>
service postfix stop<br>
chkconfig postfix off<br>
sed -i '/^server/d' /etc/ntp.conf<br>
echo "server myntpserver" >> /etc/ntp.conf<br>
mkdir /SRC<br>
mkdir /soft<br>
echo "myNFSserver:/SRC/SL-6.3 /SRC nfs
defaults,noauto 0 0" >> /etc/fstab<br>
echo "myNFSserver:/soft/SL-6.3 /soft nfs
defaults 0 0" >> /etc/fstab<br>
mount /soft<br>
$SNIPPET('adding_SSH_key')<br>
# End testing new config<br>
<br>
<br>
So, with this kickstart file, what is the problem?<br></div></blockquote><div><br></div><div>The kickstart_done snippet should be the last thing in the %post section. In your case, you're adding the SSH key after the kickstart_done snippet is run, so that may be the issue - you're running into a race condition. </div>
<div><br></div><div>Move the kickstart_done down under the last part, and re-test. You can always test using wget to trigger the post install events, which should work even after the system reboots for the first time.</div>
</div>