Package: fai-server Version: 3.4.2 Severity: normal Tags: patch i noticed that there is a minor glitch in fai-setup. when it creates the known_hosts for the loguser and live filesystem it does so incorrectly. instead of adding the server's ip address, it uses the ip address/subnet mask (e.g., "207.241.226.106/21 ssh-dss [...] instead of 207.241.226.106 ssh-dss [...]). for me this prevented the closing ssh requests to the fai server from working by default.
there is a similar (correct) snippet of code in make-fai-nfsroot and i made a simple tweak to fai-setup to match that. it appears to fix the problem. patch file attached. thank you for your time and effort. andy -- System Information: Debian Release: squeeze/sid APT prefers experimental APT policy: (999, 'experimental'), (990, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages fai-server depends on: ii debootstrap 1.0.23 Bootstrap a basic Debian system ii fai-client 3.4.2 Fully Automatic Installation clien Versions of packages fai-server recommends: ii fai-setup-storage 3.4.2 automatically prepare storage devi ii isc-dhcp-server [dhcp3-ser 4.1.1-P1-9 ISC DHCP server for automatic IP a ii nfs-kernel-server 1:1.2.2-4 support for NFS kernel server ii openbsd-inetd [inet-supers 0.20080125-6 The OpenBSD Internet Superserver ii openssh-client 1:5.6p1-1 secure shell (SSH) client, for sec ii openssh-server 1:5.6p1-1 secure shell (SSH) server, for sec ii syslinux-common 2:4.02+dfsg-3 collection of boot loaders (common ii tftpd-hpa 5.0-16 HPA's tftp server Versions of packages fai-server suggests: pn apt-move <none> (no description available) ii aptitude 0.6.3-3 terminal-based package manager (te pn debmirror <none> (no description available) ii genisoimage 9:1.1.10-1 Creates ISO-9660 CD-ROM filesystem pn grub <none> (no description available) pn libproc-daemon-perl <none> (no description available) ii perl-tk 1:804.029-1 Perl module providing the Tk graph -- no debconf information
--- ./fai-3.3.5ubuntu3/bin/fai-setup 2009-10-28 08:31:30.000000000 -0700 +++ ./fai-3.3.5ubuntu3+ia1/bin/fai-setup 2010-08-17 15:49:35.226396421 -0700 @@ -115,7 +115,7 @@ [ -f /etc/ssh/ssh_host_dsa_key.pub ] && DSASERVER=$(sed -e "s/= .*$/=/" /etc/ssh/ssh_host_dsa_key.pub) [ -f /etc/ssh/ssh_host_rsa_key.pub ] && RSASERVER=$(sed -e "s/= .*$/=/" /etc/ssh/ssh_host_rsa_key.pub ) # determine all IP addresses, and their host names - ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | grep -v 127.0.0.1) + ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1) for ip in $ips; do hname=$(getent hosts $ip| tr -s ' ' ',') : ${hname:=$ip}