JaKooLit / Arch-Hyprland

For automated installation of Hyprland on Arch or any arch based distros
GNU General Public License v3.0
1.27k stars 106 forks source link

Get a valid zsh path for chsh #112

Closed kay0u closed 4 days ago

kay0u commented 1 month ago

Pull Request

Description

I wanted to try Hyprland and your script inside a VM. The script looped on:

chsh -s $(which zsh) Password: chsh: "/usr/sbin/zsh" is not listed in /etc/shells.

Type of change

Please put an x in the boxes that apply:

Checklist

Please put an x in the boxes that apply:

Screenshots

(if appropriate)

Additional context

Add any other context about the problem here.

JaKooLit commented 1 month ago

are you using vanilla arch or arch based?

Because I just tried now, Ive changed to bash

chsh -s $(which bash)

type in password, shell changed to bash

I rebooted for good sake

changed to zsh using step above, only change the bash to zsh

and shell changed to zsh with no errors

kay0u commented 1 month ago

My error occurred in a lxd VM, using a prebuilt archlinux from https://images.linuxcontainers.org/ (the desktop-gnome version)