From 271986a16ffe295c68a6d6bc2e88c7622135c46d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 1 Apr 2023 13:55:04 +0200 Subject: [PATCH] Fix calls to relative files --- scripts/OS/Arch/setup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/OS/Arch/setup.sh b/scripts/OS/Arch/setup.sh index 5d18d850..cd03725e 100755 --- a/scripts/OS/Arch/setup.sh +++ b/scripts/OS/Arch/setup.sh @@ -15,8 +15,6 @@ timedatectl set-timezone "$ARCH_TIMEZONE"; pacstrap -K "$ARCH_MOUNT_ROOT" base linux linux-firmware networkmanager; genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"; -arch-chroot "$ARCH_MOUNT_ROOT" . ./init.sh; - arch-chroot "$ARCH_MOUNT_ROOT" ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime; arch-chroot "$ARCH_MOUNT_ROOT" hwclock --systohc; @@ -31,6 +29,9 @@ arch-chroot "$ARCH_MOUNT_ROOT" mkinitcpio -P; echo "Please choose a password for the user \`root\`"; arch-chroot "$ARCH_MOUNT_ROOT" passwd; -arch-chroot "$ARCH_MOUNT_ROOT" . ../../Software/GRUB/install.sh; +dir="$(realpath ../../..)"; +scriptRoot="$(realpath --relative "$(pwd)" "$dir")"; +cp -r "$dir" "$ARCH_MOUNT_ROOT/tmp/"; +arch-chroot "$ARCH_MOUNT_ROOT" . "$scriptRoot/../../Software/GRUB/install.sh"; popd > /dev/null;