On Tue, Mar 12, 2013 at 8:38 AM, Personal Técnico <span dir="ltr">&lt;<a href="mailto:tecnicos@caos.uab.es" target="_blank">tecnicos@caos.uab.es</a>&gt;</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(&#39;kickstart_done&#39;):<br>
    <br>
    [...]<br>
    %post<br>
    $SNIPPET(&#39;log_ks_post&#39;)<br>
    # Start yum configuration<br>
    $yum_config_stanza<br>
    # End yum configuration<br>
    $SNIPPET(&#39;post_install_kernel_options&#39;)<br>
    $SNIPPET(&#39;post_install_network_config&#39;)<br>
    $SNIPPET(&#39;func_register_if_enabled&#39;)<br>
    $SNIPPET(&#39;puppet_register_if_enabled&#39;)<br>
    $SNIPPET(&#39;download_config_files&#39;)<br>
    $SNIPPET(&#39;koan_environment&#39;)<br>
    $SNIPPET(&#39;redhat_register&#39;)<br>
    $SNIPPET(&#39;cobbler_register&#39;)<br>
    # Enable post-install boot notification<br>
    $SNIPPET(&#39;post_anamon&#39;)<br>
    # Start final steps<big><b><br>
      </b><b>$SNIPPET(&#39;kickstart_done&#39;)</b></big><br>
    # End final steps<br>
    <br>
    # Testing new config<br>
    service postfix stop<br>
    chkconfig postfix off<br>
    sed -i &#39;/^server/d&#39; /etc/ntp.conf<br>
    echo &quot;server myntpserver&quot; &gt;&gt; /etc/ntp.conf<br>
    mkdir /SRC<br>
    mkdir /soft<br>
    echo &quot;myNFSserver:/SRC/SL-6.3      /SRC            nfs    
    defaults,noauto        0 0&quot; &gt;&gt; /etc/fstab<br>
    echo &quot;myNFSserver:/soft/SL-6.3     /soft           nfs    
    defaults        0 0&quot; &gt;&gt; /etc/fstab<br>
    mount /soft<br>
    $SNIPPET(&#39;adding_SSH_key&#39;)<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&#39;re adding the SSH key after the kickstart_done snippet is run, so that may be the issue - you&#39;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>