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 <