Proper feeding of commands to arch-chroot
This commit is contained in:
parent
0d18331b09
commit
6377d2867a
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user