Re: mistake in subroutines line 1285

2024-03-05 Diskussionsfäden Thomas Lange
Hi

ssh is correct. ftp will not work here. We need to log into the
server for changing the boot configuration by calling fai-chboot. This
can't be done using ftp. The login has to be done via ssh.

regards Thomas


Re: Install particular version of package?

2024-03-05 Diskussionsfäden Steffen Grunewald
Hi all,

since I seem to be the only one who ever faced this question, I'll also
be the only one to answer it...


On Fri, 2024-03-01 at 14:05:28 +0100, Steffen Grunewald wrote:
> 
> Is it possible to specify "package=1.2.3+deb12" in a package_config/CLASS
> file for the "instsoft" task, or

It is possible, but mistyping the version (or specifying one that has been
removed from the repository) will result in the infamous "25600 25600" error,
causing not only this particular package missing from the installation but
a whole lot more!

> do I have to "apt-get -y install package=1.2.3+deb12" during the "configure"
> task, in a scripts/CLASS/99downgrade script?

This way is much safer, and it saves the trouble of getting things right
when an upgraded package fixes the broken one - if you check the installed
version ("dpkg -l package | awk '{print $3}'") and in that "case" *only*
perform the downgrade.

HTH someone else,

Steffen


mistake in subroutines line 1285

2024-03-05 Diskussionsfäden pa...@kish.by
Hello

in fai/lib/subroutines we have code on lines 1284-1288

 case "$FAI_LOGPROTO" in
ftp) remotesh=ssh ;;
ssh) remotesh=ssh ;;
rsh) remotesh=rsh ;;
none) return ;;


Is line  ftp) remotesh=ssh ;; is correct?
I have changed it to  ftp) remotesh=ftp ;; now all works fine