From 55daa135a7288f47f4cd7e1a56a1446f972ba000 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 25 Aug 2025 08:34:41 +0200 Subject: [PATCH] Allow pacman -Sy without sudo to easier installs --- install/preflight/repositories.sh | 6 ++++++ migrations/1756103168.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 migrations/1756103168.sh diff --git a/install/preflight/repositories.sh b/install/preflight/repositories.sh index 79c3d8ec..d6acf039 100755 --- a/install/preflight/repositories.sh +++ b/install/preflight/repositories.sh @@ -36,3 +36,9 @@ if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ]; then echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!" fi fi + +# Allow repository index updates without sudo +sudo tee /etc/sudoers.d/repositories >/dev/null </dev/null <