fix: create keyboard layout after user
This commit is contained in:
+7
-6
@@ -375,12 +375,6 @@ arch-chroot "/mnt" localectl set-locale LANG=en_US.UTF-8
|
||||
|
||||
echo "KEYMAP=de-latin1-nodeadkeys" > "/mnt/etc/vconsole.conf"
|
||||
arch-chroot /mnt localectl set-keymap --no-convert de-latin1-nodeadkeys
|
||||
|
||||
cat << EOF > "/mnt/home/${user}/.config/kxkbrc"
|
||||
[Layout]
|
||||
LayoutList=de
|
||||
Use=true
|
||||
EOF
|
||||
echo "Done."
|
||||
echo
|
||||
|
||||
@@ -466,6 +460,13 @@ arch-chroot /mnt useradd -m "${user}"
|
||||
echo -en "${pwur}\n${pwur}" | arch-chroot /mnt passwd "${user}"
|
||||
arch-chroot /mnt gpasswd -a "${user}" wheel
|
||||
sed -i '82s/.*/%wheel ALL=(ALL) ALL/' /mnt/etc/sudoers
|
||||
|
||||
# Create keyboard layout
|
||||
cat << EOF > "/mnt/home/${user}/.config/kxkbrc"
|
||||
[Layout]
|
||||
LayoutList=de
|
||||
Use=true
|
||||
EOF
|
||||
echo "Done."
|
||||
echo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user