You are not logged in.
I have a problem with my login.
agetty doesn't display any escape codes from my /etc/issue. Color is applied correctly, but I get output like \l instead of tty1.
My journalctl shows the following lines:
getty@tty6.service: Scheduled restart job, restart counter is at 1.
getty@tty6.service: Service has no hold-off time, scheduling restart.but only after logout.
I didn't change anything in the systemd service files, but here is my getty@tty1.service anyways:
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
# 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
IgnoreOnIsolate=yes
# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service
# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0
[Service]
# the VT is cleared by TTYVTDisallocate
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
UnsetEnvironment=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
[Install]
WantedBy=getty.target
DefaultInstance=tty1I don't find any results related to this in an online search and I am not sure how to debug this further, so any help would be appreciated.
Offline
Color is applied correctly
Does it work w/ the default /etc/issue and in case: what does yours look like?
Offline
It actually worked with a normal one.
I used the one from the wiki: https://wiki.archlinux.org/index.php/Co … gin_screen
Edit:
Okay, I figured it out. It seems there is an error in the wiki entry and all the slashes are doubled. I think this is because of a copying mistake from the original thread to the wiki page.
It should look like this in /etc/issue and not like the wiki writes. I might edit it later today. There is also written the file should be made executable, which is definitely not the case.
\e[H\e[2J
\e[1;30m| \e[34m\s \r
\e[36;1m/\\ \e[37m|| \e[36m| | \e[30m|
\e[36m/ \\ \e[37m|| \e[36m| _ \e[30m| \e[32m\t
\e[1;36m/ \e[0;36m.. \e[1m\\ \e[37m//==\\\\ ||/= /==\\ ||/=\\ \e[36m| | |/ \\ | | \\ / \e[30m| \e[32m\d
\e[0;36m/ . . \\ \e[37m|| || || | || || \e[36m| | | | | | X \e[1;30m|
\e[0;36m/ . . \\ \e[37m\\\\==/| || \\==/ || || \e[36m| | | | \\_/| / \\ \e[1;30m| \e[31m\U
\e[0;36m/ .. .. \\ \e[0;37mA simple, lightweight linux distribution. \e[1;30m|
\e[0;36m/ ` \\ \e[1;30m| \e[35m\l \e[0mon \e[1;33m\n
\e[0mLast edited by saram-6197-kon (2018-05-09 15:40:33)
Offline