writing over pxelinux.cfg

Andreas Schockenhoff asc at gmx.li
Mon Jul 19 20:26:48 CEST 2004


Hello what what :-),

On Monday 19 July 2004 19:27, what what wrote:

> I found that fai writes over the correct version of pxelinux.cfg/
> scripts after a successful installation. This make the scripts not
> usable any more. Don't understand how it behaviours this way. Why
> should it write it even though it works by itself. 
use this hook if you do not like this feature.

fai/hooks/chboot.DEFAULT

#! /bin/sh
SCRIPTNAME=`basename $0`
skiptask=`echo $SCRIPTNAME | sed "s/\..*$//"`
skiptask $skiptask

or simple 

#! /bin/sh
skiptask chboot

> Another problem, I 
> couldn't get ride of the "couldn't add .ssh/known_hosts" in saving
> logs, from scp.
>
> the following rcS.log file shows these problems,
>
> Mon Jul 19 03:04:19 CDT 2004
> The installation took 496 seconds.
> Calling task_chboot
> Failed to add the host to the list of known hosts
> (/root/.ssh/known_hosts). /tmp/target/boot/vmlinuz-*: No such file or
> directory
> Failed to add the host to the list of known hosts
> (/root/.ssh/known_hosts). /tmp/target/boot/initrd.img-*: No such file
> or directory
> Failed to add the host to the list of known hosts
> (/root/.ssh/known_hosts). Kernel parameters:
> initrd=128.135.160.144-initrd.img
> append parameters:  initrd=128.135.160.144-initrd.img
> kernel is 128.135.160.144-localboot
> rootfs is /dev/hda1
> 128.135.160.144 has 128.135.160.144 in hex 8087A090
> Writing file /boot/fai/pxelinux.cfg/8087A090 for 128.135.160.144
> Calling hook: savelog.LAST
> ERRORS found in log files. See /tmp/fai/error.log.
> savelog.LAST         OK.
> Calling task_savelog
You must add the key in the nfs root on the server. 
(/usr/lib/fai/nfsroot/root/.ssh/known_hosts).

bye Andreas 



More information about the linux-fai mailing list