From 6377d2867a8b1f7b678899aa582311340d2bcec6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 25 Nov 2021 04:35:28 -0600 Subject: [PATCH] Proper feeding of commands to arch-chroot --- Misc/Arch-LuksCrpy-Install.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Misc/Arch-LuksCrpy-Install.bash b/Misc/Arch-LuksCrpy-Install.bash index 612999a..6faf75b 100755 --- a/Misc/Arch-LuksCrpy-Install.bash +++ b/Misc/Arch-LuksCrpy-Install.bash @@ -270,7 +270,7 @@ install() { mount /dev/mapper/cryptroot /mnt mkdir /mnt/boot - mount "${install_path}" /mnt/boot + mount "${install_path}" /mnt/boot/ local mem_amount mem_amount="$(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f2)" mem_amount=$(( mem_amount * 3/2 / 1000 )) @@ -295,7 +295,7 @@ install() { genfstab -U /mnt >> /mnt/etc/fstab log "info" "Finished generating fstab" log "info" "Switching to new installation" - arch-chroot /mnt + arch-chroot /mnt << __END_CHROOT_CMDS__ log "info" "Configuring hosts and hostname" echo "arch" > /etc/hostname cat << __EOF__ > "/etc/hosts" @@ -343,6 +343,7 @@ __EOF__ yes | pacman -S networkmanager systemctl enable NetworkManager log "info" "Finished!" +__END_CHROOT_CMDS__ log "info" "Next steps: update localities if incorrect, add your user" }