Copy pacman config depending on architecture

This commit is contained in:
exu 2024-09-16 20:43:45 +02:00
parent 86e7ab451c
commit 4d6bebd628
2 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@ cp -r "$tempdir/arch-config/scripts/" ~/
#copy stuff to /etc #copy stuff to /etc
sudo cp -r "$tempdir/arch-config/etc" / sudo cp -r "$tempdir/arch-config/etc" /
# Copy pacman config depending on system architecture
# This is required due to differences in available repos between Arch on x86_64 and ALARM for aarch64
if [ "$(uname --machine)" == "x86_64" ]; then
sudo cp "/etc/pacman-x86_64.conf" "/etc/pacman.conf"
fi
echo Copied folders echo Copied folders
# Set xdg-user-dirs as environment variables # Set xdg-user-dirs as environment variables