This is very odd. My only guess is that's it's a F16 issue. I use this trick on every machine in the log_ks_pre snippet. It's worked on every RHEL/CentOS machine I've built - releases 4-6.

 

From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Detlev Habicht
Sent: Friday, December 23, 2011 5:49 AM
To: cobbler mailing list
Subject: Fwd: snippet keep_ssh_host_keys not running in background

 

 

Hi again,

 

well, i found no solution. (The first part was my fault - as i already told, patching

cobbler helps.)

 

But i found no solution for the background job problems.

 

I tested all the hints i got. Nothing worked. Thank you for your help.

 

I also used the newest bash version. I tried to split the snippet in two parts and so on.

 

It looks, like it is not possible to start a background job in the %pre section of a

kickstart file and maybe also in the %post section. (When i use terminal access via ALT F2

 it is possible to start background jobs via shell while the system is installed!!!)

 

So, maybe this is not a cobbler problem and i am wrong here with my problem.

 

Thanx again

 

Detlev

 

--
  Detlev  | Institut fuer Mikroelektronische Systeme
  Habicht | D-30167 Hannover +49 511 76219662 habicht@ims.uni-hannover.de
  --------+-------- Handy    +49 172 5415752  ---------------------------

 

Am 21.12.2011 um 11:28 schrieb Detlev Habicht:



 

Hi all,

 

i am testing the snippet keep_ssh_host_keys.

 

Well, i am a beginner in cobbler and maybe my problem is a bash problem, but

when i use keep_ssh_host_keys i have two problems:

 

When i use keep_ssh_host_keys as snippet, i see while kickstart is running:

 

Unknown command: <!DOCTYPE

 

Why?

 

Well, than i put the whole keep_ssh_host_keys script in my kickstart file

and now the script is running until the last part (i can see, the keys are

saved in /tmp):

 

# Loop until the corresponding rpm is installed

if [ "$keys_found" = "yes" ]; then

    while : ; do

        sleep 10

        if [ -d /mnt/sysimage$SEARCHDIR ] ; then

            cp -af /tmp/$TEMPDIR/${PATTERN}* /mnt/sysimage$SEARCHDIR

            logger "keys copied to newly installed system"

            break

        fi

    done &

fi

 

The kickstart process stopped and i think the loop is running, but not

in the background, so the installation process cannot proceed.

 

Why?

 

Thanx for any help!

 

Detlev

 

--

  Detlev  | Institut fuer Mikroelektronische Systeme
  Habicht | D-30167 Hannover +49 511 76219662 habicht@ims.uni-hannover.de
  --------+-------- Handy    +49 172 5415752  ---------------------------

 

 

_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

 

 



*******************************************************
This message (including any files transmitted with it) may contain confidential and/or proprietary information, is the property of Interactive Data Corporation and/or its subsidiaries, and is directed only to the addressee(s). If you are not the designated recipient or have reason to believe you received this message in error, please delete this message from your system and notify the sender immediately. An unintended recipient's disclosure, copying, distribution, or use of this message or any attachments is prohibited and may be unlawful.
*******************************************************