Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide user-virtio-terminal console option #14967

Merged
merged 1 commit into from
May 31, 2022

Conversation

b10n1k
Copy link
Contributor

@b10n1k b10n1k commented May 25, 2022

The select_serial_terminal picks by default root-virtio-terminal but the
subroutine provides parameter to select a console as normal user.

Somehow this found misconfigured. The condition was like that
$console = $root ? 'root-virtio-terminal' : 'virtio-terminal';. There was
two main issues. One was that the propor console was not added during the
init_consoles and the second was that the variable was not a valid option.

The first is solved easily by adding another line to call add_console.
In the second case the correct name is user-virtio-terminal instead
virtio-terminal. the underline variable is evaluated later against a regex
to assign some other variables, one of them is $user and another is type
which each are required for the user login and the console initialization.

Signed-off-by: Ioannis Bonatakis ybonatakis@suse.com

@github-actions
Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files

lib/opensusebasetest.pm Outdated Show resolved Hide resolved
lib/opensusebasetest.pm Outdated Show resolved Hide resolved
lib/opensusebasetest.pm Outdated Show resolved Hide resolved
Copy link
Contributor

@mdoucha mdoucha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the docs wording discussed above, LGTM.

The `select_serial_terminal` picks by default `root-virtio-terminal` but the
subroutine provides parameter to select a console as normal user.

Somehow this found misconfigured. The condition was like that
`$console = $root ? 'root-virtio-terminal' : 'virtio-terminal';`. There was
two main issues. One was that the propor console was not added during the
`init_consoles` and the second was that the variable was not a valid option.

The first is solved easily by adding another line to call `add_console`.
In the second case the correct name is `user-virtio-terminal` instead
`virtio-terminal`. the underline variable is evaluated later against a regex
to assign some other variables, one of them is *$user* and another is *type*
which each are required for the user _login_ and the console _initialization_.

Signed-off-by: Ioannis Bonatakis <ybonatakis@suse.com>
@b10n1k b10n1k merged commit 645175e into os-autoinst:master May 31, 2022
@b10n1k b10n1k deleted the enable_virtio-terminal branch August 24, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants