aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-18 19:27:30 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-18 19:27:30 -0400
commitb3e18182e448b1137b8ec19cf18499d266a50219 (patch)
tree46194b7acbc31f9bb3152b8cffedb36cd350e890
parent401d6120afab4498f8aa8209a382f07eaef7e536 (diff)
install script forces re-creation of builddir in proper place on /mnt
-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