You are not logged in.

#1 2024-09-29 23:39:07

veist
Member
Registered: 2024-07-17
Posts: 17

[Solved]Made a mistake with getty@tty1.service, tty login doesn't load

I use the default tty to login (no display manager), and have been getting the error "Bluetooth: hci0: Malformed MSFT vendor event: 0x02" which ends up printing after the user login appears, making it look horrible.

I was able to fix it by altering /etc/systemd/system/getty.target.wants/getty@tty1.service:

ExecStart=-/sbin/agetty -o '-p -- \\u' --delay 3 - $TERM

This has been working fine, but recently the file was somehow reverted to its default on both of my computers.  On the PC in question, I thought I had used a delay of 3.5, but after changing it to that the tty1 login prompt no longer loads .  /etc/issue does not load either.  Am I able to get into the system to alter that file with an Arch linux usb?  Or is there an easier way to bypass the tty?  My drives are not LUKS encrypted but I did use a username and password to login.  Root login and ssh have been disabled.

Thanks for any help in advance.

Last edited by veist (2024-09-30 01:08:22)

Offline

#2 2024-09-30 00:02:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [Solved]Made a mistake with getty@tty1.service, tty login doesn't load

Switch to another tty: Alt+F2 or Alt+F3


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-09-30 00:12:45

veist
Member
Registered: 2024-07-17
Posts: 17

Re: [Solved]Made a mistake with getty@tty1.service, tty login doesn't load

Thanks, just tried alt+F2 through F6 and all quickly flash a message about the invalid delay time.  I noticed it did that when it tried to load tty1 this time as well.  If I use an Arch install USB, do you think I would I be able to access my drives by chrooting?

Offline

#4 2024-09-30 01:07:33

veist
Member
Registered: 2024-07-17
Posts: 17

Re: [Solved]Made a mistake with getty@tty1.service, tty login doesn't load

I was able to fix it!  I booted from a usb with the arch install ISO.  From there:

root@archiso ~ # mount /dev/nvme0n1p3 /mnt
root@archiso ~ # arch-chroot /mnt
[root@archiso /]# cd /etc/systemd/system/getty.target.wants

From there I was able to edit getty@tty1.service with vim, exit chroot, and reboot.  All appears to be working.

Offline

Board footer

Powered by FluxBB