I have always used text+console boot without graphic interface. This includes the login, that is also text only since I do some sync stuff at login time, specifically on tty1
where I have an autologin script, that executes the following command through the file /etc/systemd/system/getty@tty1.service.d/override.conf
:
/usr/sbin/agetty --autologin <myusername> --noclear %I 38400 linux
I just upgraded to Fedora 36 (from 35), and the boot goes fine until the very last step. Instead of showing me a text login prompt, it shows a black screen with an underscore at the top left.
Why?
The command systemctl
goes well except precisely for one red line:
● getty@tty1.service loaded failed failed Getty on tty1
In the logs, I can see an error:
agetty[4565]: /dev/tty1: "cannot get controlling tty: Operation not permitted"
agetty[4565]: setting terminal attributes failed: Input/output error
I can see this error in the console each time I try as root
service getty@tty1.service start
I don't know what went wrong, but it seems the agetty command changed?
EDIT:
If I put the line:
ExecStart=-/usr/sbin/agetty --autologin <myusername> --noclear tty1 38400 linux
in the file /etc/systemd/system/getty@tty1.service.d/override.conf
the autologin works. Yet, if I change to
ExecStart=-/home/<myusername>/bin/myautologinscript.sh
with the same line, it doesn't!!
exec agetty...
instead ofagetty...
in your script.systemctl show getty@tty1.service
would probably help.exec
in front of hte agetty did it. But why? Why it wasn't necessary before? It would be nice if you write this as a solution and explain why it worked. Thanks!