From 11156c94f5f2952670eecc7bdea22de0118d1882 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 1 Apr 2023 14:17:27 +0200 Subject: [PATCH] Fix non-functioning grub installation --- scripts/OS/Arch/setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;