Installation over serial console : menu of profile not working as expected
Sébastien Grenier
sebas at koumbit.org
Tue Nov 20 16:51:56 CET 2018
Le 18-11-20 à 10 h 23, Sébastien Grenier a écrit :
> Le 18-11-20 à 06 h 41, Thomas Lange a écrit :
>>>>>>> On Mon, 19 Nov 2018 22:02:44 -0300, Sébastien Grenier <sebas at koumbit.org> said:
>>
>> > I suspect the problem is with this script...
>> > https://github.com/faiproject/fai-config/blob/master/class/40-parse-profiles.sh
>>
>> I also think that the problem is there.
>> Can you try to write the value of the variable $out (which is the
>> output of the command tty) to a file and see if it is set correctly?
>>
>
> When I echo $out like this
>
> ------------------------------------------------
> diff --git a/class/40-parse-profiles.sh b/class/40-parse-profiles.sh
> index c80cf7a7..01804c2f 100755
> --- a/class/40-parse-profiles.sh
> +++ b/class/40-parse-profiles.sh
> @@ -14,6 +14,7 @@ fi
> [ "$flag_menu" ] || return 0
>
> out=$(tty)
> +echo $out > /tmp/fai/out.txt
> tempfile=`(tempfile) 2>/dev/null`
> tempfile2=`(tempfile) 2>/dev/null`
> ---------------------------------------------
>
> I get that
> /dev/console
> in /tmp/fai/out.txt
>
> Is it what should be expected?
>
Seems like the most interesting part is part of this file:
# cat /tmp/fileVotmuV
libgpm: zero screen dimension, assuming 80x25.
the temp file is created by the script
class/40-parse-profiles.sh
I've ask a friend that have suggested to remove the 1>$out at line 150
and 161.
Now, I can press enter in the menu and it's working over the serial
console and also on the normal screen.
But, I've lost the capacity to navigate the menu, it ouputs garbage instead.
Let see...
Sébastien
More information about the linux-fai
mailing list