diff --git a/archinstall/chrootinstall.sh b/archinstall/chrootinstall.sh index 9b84775..944f926 100755 --- a/archinstall/chrootinstall.sh +++ b/archinstall/chrootinstall.sh @@ -43,8 +43,7 @@ done langinst=$(cat /etc/locale.gen | grep -m1 '^#'$opclang | cut -c2-40) -sed "s/\#$langinst/$langinst/g" /etc/locale.gen > /etc/locale.gen.new -mv /etc/locale.gen.new /etc/locale.gen +sed -i "s/\#$langinst/$langinst/g" /etc/locale.gen echo "LANG=$opclang" > /etc/locale.conf echo "LC_COLLATE=$opclang" >> /etc/locale.conf echo "KEYMAP=$langabr" > /etc/vconsole.conf @@ -69,8 +68,7 @@ read nameuser useradd -m -G wheel -s /bin/bash $nameuser passwd $nameuser #AƱadir soporte sudo para este nuevo usuario -sed "s/\# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g" /etc/sudoers > /etc/sudoers.new -mv /etc/sudoers.new /etc/sudoers +sed -i "s/\# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g" /etc/sudoers } function graficos { @@ -264,6 +262,7 @@ case $optentorno in 2) pacman -S gnome gnome-extra --noconfirm;; esac + pacman -R gdm --noconfirm instentorno=1 ;; 5)