chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
path-lookup: monitor /etc/systemd/user for user manager
[elogind.git]
/
src
/
getty-generator.c
diff --git
a/src/getty-generator.c
b/src/getty-generator.c
index 683775a4d50615be3af32159ef01aa478a06115d..b8228e98223f83506a54019f427389f46a18f959 100644
(file)
--- a/
src/getty-generator.c
+++ b/
src/getty-generator.c
@@
-73,6
+73,8
@@
int main(int argc, char *argv[]) {
log_parse_environment();
log_open();
log_parse_environment();
log_open();
+ umask(0022);
+
if (detect_container(NULL) > 0) {
log_debug("Automatic adding console shell.");
if (detect_container(NULL) > 0) {
log_debug("Automatic adding console shell.");
@@
-115,10
+117,18
@@
int main(int argc, char *argv[]) {
/* Automatically add in a serial getty on the first
* virtualizer console */
if (access("/sys/class/tty/hvc0", F_OK) == 0) {
/* Automatically add in a serial getty on the first
* virtualizer console */
if (access("/sys/class/tty/hvc0", F_OK) == 0) {
- log_debug("Automatic adding serial getty for hvc0.");
+ log_debug("Automatic
ally
adding serial getty for hvc0.");
if (add_symlink("serial-getty@.service", "serial-getty@hvc0.service") < 0)
r = EXIT_FAILURE;
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("Automatically adding serial getty for xvc0.");
+
+ if (add_symlink("serial-getty@.service", "serial-getty@xvc0.service") < 0)
+ r = EXIT_FAILURE;
}
finish:
}
finish: