post-inst questions...

Philip Rowlands phr at doc.ic.ac.uk
Mon Oct 25 16:34:21 UTC 2004


On Mon, 25 Oct 2004, [ISO-8859-15] Raphaël 'SurcouF' Bordet wrote:

>%post
>...
>wget http://www.<domain>.<tld>/fichier.tar.bz2 -O /tmp/fichier.tar.bz2
>tar jxf /tmp/fichier.tar.bz2 -C /
>wget http://www.<domain>.<tld>/sshd_config -O /etc/ssh/sshd_config
>wget http://www.<domain>.<tld>/banner.txt -O /etc/ssh/banner.txt

Why not put all the files (including those from /etc/ssh) in the same
tarfile?

>wget http://www.<domain>.<tld>/sshd_config -O /tmp/sshd_config
>wget http://www.<domain>.<tld>/banner.txt -O /etc/ssh/banner.txt
>mv -f /tmp/sshd_config /tmp/banner.txt /etc/ssh/

That looks like it should work. You could capture more debugging output
from wget, e.g.

wget -O outfile -o /tmp/wget.log -d <URL>
sleep 600

During the 10 minute sleep, you could switch to the VT2, which runs a
shell during kickstart (Alt+F2), and check the log in /mnt/sysimage/tmp,
or try running wget by hand. Don't forget about the (/mnt/sysimage)
chroot...


Cheers,
Phil




More information about the Kickstart-list mailing list