mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
getty: automatically spawn getty on xen console xvc0
https://bugzilla.redhat.com/show_bug.cgi?id=726976
This commit is contained in:
parent
6e5c044421
commit
980fc73d1f
@ -8,7 +8,7 @@
|
||||
ACTION=="remove", GOTO="systemd_end"
|
||||
|
||||
SUBSYSTEM=="tty", KERNEL=="tty[0-9]|tty1[0-2]", TAG+="systemd"
|
||||
SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*", TAG+="systemd"
|
||||
SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*", TAG+="systemd"
|
||||
|
||||
KERNEL=="vport*", TAG+="systemd"
|
||||
|
||||
|
@ -119,6 +119,14 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (add_symlink("serial-getty@.service", "serial-getty@hvc0.service") < 0)
|
||||
r = EXIT_FAILURE;
|
||||
|
||||
}
|
||||
|
||||
if (access("/sys/class/tty/xvc0", F_OK) == 0) {
|
||||
log_debug("Automatic adding serial getty for xvc0.");
|
||||
|
||||
if (add_symlink("serial-getty@.service", "serial-getty@xvc0.service") < 0)
|
||||
r = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
finish:
|
||||
|
Loading…
Reference in New Issue
Block a user