Installation over serial console : menu of profile not working as expected

Sébastien Grenier sebas at koumbit.org
Tue Nov 20 14:23:13 CET 2018


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?

Thanks,

Sébastien


More information about the linux-fai mailing list