diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-11-29 20:23:19 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-11-29 20:23:19 +0100 |
commit | bf13274331e1a61810c44f05d5525b44668bf862 (patch) | |
tree | 7389c8960cf97591f8b8a63c7fda3b65b52d723a | |
parent | Trying that (diff) | |
download | arch-installer-bf13274331e1a61810c44f05d5525b44668bf862.tar.gz arch-installer-bf13274331e1a61810c44f05d5525b44668bf862.tar.bz2 arch-installer-bf13274331e1a61810c44f05d5525b44668bf862.tar.xz arch-installer-bf13274331e1a61810c44f05d5525b44668bf862.tar.zst arch-installer-bf13274331e1a61810c44f05d5525b44668bf862.zip |
Should be ok now
-rwxr-xr-x | arch-installer.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch-installer.sh b/arch-installer.sh index b5976bb..e49c635 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -533,9 +533,10 @@ echo \"$hstnm\" > /etc/hostname echo \"127.0.0.1 localhost\" > /etc/hosts echo \"::1 localhost\" >> /etc/hosts echo \"127.0.1.1 $hstnm.localdomain $hstnm\" >> /etc/hosts -passwd +passwd <<EOF $rtpwd $rtpwd +EOF systemctl enable NetworkManager sed -i 's/#ForwardToSyslog=no/ForwardToSyslog=yes/' /etc/systemd/journald.conf\ " > finishit.sh @@ -548,9 +549,10 @@ sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers\ else echo "useradd -m -s /bin/$usrshell $usr" >> finishit.sh fi - echo "passwd $usr + echo "passwd $usr <<EOF +$usrpwd $usrpwd -$usrpwd\ +EOF " >> finishit.sh fi if [ "$ltskern" = false ]; then @@ -571,9 +573,11 @@ grub-mkconfig -o /boot/grub/grub.cfg " >> finishit.sh fi chmod +x finishit.sh +mv finishit.sh /mnt/arch arch-chroot /mnt/arch <<EOF -./../../finishit.sh +./finishit.sh EOF +rm -f /mnt/arch/finishit.sh #arch-chroot /mnt/arch << ARCH_CHROOT_CMDS # ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime # hwclock --systohc |