Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
systemd-mini.4328
term-serial-console-vm.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File term-serial-console-vm.patch of Package systemd-mini.4328
Index: systemd-210/src/shared/util.c =================================================================== --- systemd-210.orig/src/shared/util.c +++ systemd-210/src/shared/util.c @@ -3764,7 +3764,20 @@ const char *default_term_for_tty(const c if (streq(tty, "ttyS1")) return "TERM=vt220"; #endif - return "TERM=vt102"; + if (detect_virtualization(NULL) && (streq(tty, "xvc0") || streq(tty, "hvc0") || streq(tty, "ttyS0"))) { + char *buf = NULL; + + parse_env_file("/proc/cmdline", WHITESPACE, "term", &buf, NULL); + if (buf && *buf) { + char *term; + if (asprintf(&term, "TERM=%s", buf) < 0) + return "TERM=vt220"; + + return term; + } + } + + return "TERM=vt220"; } bool dirent_is_file(const struct dirent *de) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor