Stuck with a tty login prompt loop

Tried symlinking zsh to sh

sudo ln -sf /bin/zsh /bin/sh

And I’m stuck with the login prompt now

Because I kept getting zsh:1: usr/bin/X: bad interpreter /bin/sh: no such file or directory

Yeah, the basic shell is probably necessary and required.
Undo it…reinstall /bin/sh, surely you kept a copy vs just trashing it?

Not sure. If I’m screwed. I can fix it via arch-chroot endeavouros live usb? And what would be the process and commands to fix it?

Chroot in:

sudo rm /usr/bin/sh
sudo pacman -S bash

sh is a symbolic link to bash. It should recreate the symbolic link, if it doesn’t recreate manually.

I did this and changed the shell to bash. mcookie command is still output at login greeter ly

What else am I supposed to do after installing the bash shell?

I know nothing about ly, but mcookie is “Magic Cookie” used by Xorg. Hope that helps!

mcookie command is part of util-linux package

Yep I read up on this and I kept searching and trying everything. I’ve resorted to ripping everything last night via cut/paste into my external HDD + downloaded latest EndeavourOS release iso. So I’m about to reinstall the newest one right now. I really wish I could’ve fixed it prior to a reinstall