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

a11y: Disable brltty when not needed #5043

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions anaconda.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,16 @@ def _earlyExceptionHandler(ty, value, traceback):
except OSError:
pass

from pyanaconda.core.hw import detect_virtualized_platform
if not conf.system.provides_liveuser and detect_virtualized_platform():
# If we're virtualized boot.iso, stop brltty. Virtual machines won't have any specialized
# hardware attached. It could still spam logs very thoroughly about device confusion,
# which we don't want. On live, it is managed by gnome shell and we don't want to stop it.
try:
util.execWithRedirect("systemctl", ["stop", "brltty"])
except OSError:
pass

log.info("anaconda called with cmdline = %s", sys.argv)
log.info("Default encoding = %s ", sys.getdefaultencoding())

Expand Down