Skip to content

Commit

Permalink
console, login: Change values of stty
Browse files Browse the repository at this point in the history
Following the previous commits to upgrade
the container disk images to use CentOS stream 9,
the current values set by the `stty` command fail.

Change it to the maximal values that are accepted.

Signed-off-by: Orel Misan <[email protected]>
  • Loading branch information
orelmisan committed Jul 30, 2024
1 parent bd49059 commit 50997ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/checkup/executor/console/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (e Expecter) LoginToCentOSAsRoot(password string) error {

func configureConsole(expecter expect.Expecter) error {
batch := []expect.Batcher{
&expect.BSnd{S: "stty cols 500 rows 500\n"},
&expect.BSnd{S: "stty cols 160 rows 50\n"},
&expect.BExp{R: PromptExpression},
&expect.BSnd{S: "echo $?\n"},
&expect.BExp{R: RetValue("0")},
Expand Down

0 comments on commit 50997ad

Please sign in to comment.