aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 0191d86..0316fcf 100755
--- a/install.sh
+++ b/install.sh
@@ -42,7 +42,6 @@ if [ ! -e installed ]; then
pacstrap /mnt base || exit 1
genfstab -U /mnt >> /mnt/etc/fstab
- sudo install -d . /mnt/root/dotfiles
sed "s|%%UUID%%|$(blkid ${PART}2)|" src/etc/default/grub.orig > src/etc/default/grub
touch installed
else
@@ -50,6 +49,9 @@ else
mount /dev/Crypt/root /mnt
mount ${PART}1 /mnt/efi
fi
+rm -r /mnt/root/dotfiles
+sudo install -d /mnt/root/dotfiles
+cp -r . /mnt/root/dotfiles
arch-chroot /mnt << EOF
sh /root/dotfiles/build.sh
EOF