From d2d9a43af80469b220fe8ad211347c51ac08edb7 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Fri, 27 May 2022 10:54:42 +0200 Subject: [PATCH] Fixing hostfile issue and mkinitcpio config file. --- easy-arch.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index e685611..eaaeb72 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -324,6 +324,7 @@ mkdir -p /mnt/{home,root,srv,.snapshots,var/{log,cache/pacman/pkg},boot} for subvol in "${subvols[@]:2}"; do mount -o "$mountopts",subvol=@"$subvol" "$BTRFS" /mnt/"${subvol//_//}" done +chmod 750 /mnt/root mount -o $mountopts,subvol=@snapshots $BTRFS /mnt/.snapshots mount -o $mountopts,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg chattr +C /mnt/var/log @@ -345,6 +346,14 @@ sed -i "/^#$locale/s/^#//" /mnt/etc/locale.gen echo "LANG=$locale" > /mnt/etc/locale.conf echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf +# Setting hosts file. +print "Setting hosts file." +cat > /mnt/etc/hosts < /mnt/etc/mkinitcpio.conf <