Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 808871] Cannot log in to either mingetty or X11 under systemd. OK under System V init.

https://bugzilla.novell.com/show_bug.cgi?id=808871

https://bugzilla.novell.com/show_bug.cgi?id=808871#c12


--- Comment #12 from Tony Mechelynck <antoine.mechelynck@xxxxxxxxxxxx>
2013-03-20 18:13:28 CET ---
(In reply to comment #9)
why do you have a file /etc/systemd/system/getty@.service and why
/etc/systemd/system/getty.target.wants/getty@tty1.service is not a symlink ?

In order to avoid clearing the bootup screen at the end of bootup, see bug
731594

Here are the contents:

----- start getty@tty1.service ----- notice the --noclear argument to mingetty
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

[Unit]
Description=Getty on %I
BindTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target

[Service]
Environment=TERM=linux
ExecStart=-/sbin/mingetty --noclear %I
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE=
LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE=
LC_MEASUREMENT= LC_IDENTIFICATION=

# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP

#[Install]
#Alias=getty.target.wants/getty@tty1.service
----- end getty@tty1.service -----

----- start getty@.service ----- target of symlinks tty2@ to tty6@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

[Unit]
Description=Getty on %I
BindTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target

[Service]
Environment=TERM=linux
ExecStart=-/sbin/mingetty %I
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE=
LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE=
LC_MEASUREMENT= LC_IDENTIFICATION=

# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP

[Install]
Alias=getty.target.wants/getty@tty2.service
Alias=getty.target.wants/getty@tty3.service
Alias=getty.target.wants/getty@tty4.service
Alias=getty.target.wants/getty@tty5.service
Alias=getty.target.wants/getty@tty6.service
----- end getty@.service -----


Could you try moving /etc/systemd/system/getty@.service away

this would break the tty2 to tty6 symlinks in getty.target.wants

and replacing
/etc/systemd/system/getty.target.wants/getty@tty1.service by a symlink,
similar
to /usr/lib/systemd/system/getty@.service (same for other getty@tty?.service
symlink in /etc/systemd/system/getty.target.wants but try first with only
replacing the tty1 one).

There is no /usr/lib/systemd/system/. /usr/lib/systemd/ contains nothing else
than a user/ subdirectory (and the usual . and .. hardlinks).

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References