diff --git a/scripts/OS/Arch/setup.sh b/scripts/OS/Arch/setup.sh index 6c333658..2517a3ab 100755 --- a/scripts/OS/Arch/setup.sh +++ b/scripts/OS/Arch/setup.sh @@ -31,8 +31,9 @@ arch-chroot "$ARCH_MOUNT_ROOT" passwd; dir="$(realpath ../../..)"; scriptRoot="$(realpath --relative-to "$dir" "$(pwd)")"; -tempDir="/tmp/$(basename "$dir")"; -cp -r "$dir" "$ARCH_MOUNT_ROOT/tmp/"; +tempDir="/root/$(basename "$dir")"; +cp -r "$dir" "$ARCH_MOUNT_ROOT/root/"; arch-chroot "$ARCH_MOUNT_ROOT" bash "$tempDir/$scriptRoot/../../Software/Arch/GRUB/install.sh"; +arch-chroot rm -rf "$tempDir"; popd > /dev/null;