diff --git a/install.sh b/install.sh index 9028770..18c6cad 100644 --- a/install.sh +++ b/install.sh @@ -456,13 +456,10 @@ arch-chroot /mnt gpasswd -a "${user}" wheel sed -i '82s/.*/%wheel ALL=(ALL) ALL/' /mnt/etc/sudoers # Create keyboard layout -config_dir="/mnt/home/${user}/.config" -sudo -u "${user}" mkdir -p "${config_dir}" -sudo -u "${user}" cat << EOF > "${config_dir}/kxkbrc" -[Layout] -LayoutList=de -Use=true -EOF +config_dir="/home/${user}/.config" +arch-chroot /mnt sudo -u "${user}" mkdir -p "${config_dir}" +arch-chroot /mnt sudo -u user bash -c \ + "printf '[Layout]\nLayoutList=de\nUse=true' >> ${config_dir}/kxkbrc" echo "Done." echo