aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-25 14:39:08 -0400
committerCraig Jennings <c@cjennings.net>2026-06-25 14:39:08 -0400
commit66caeb5ca7dbe497fa40c5a5d321548f7a879b27 (patch)
tree2b83f2989804b3ae1e1c7dc476d4fe053f050ac5
parent8ed42b96cfd0d365678392ef65c99d24c9f2de82 (diff)
downloadarchsetup-66caeb5ca7dbe497fa40c5a5d321548f7a879b27.tar.gz
archsetup-66caeb5ca7dbe497fa40c5a5d321548f7a879b27.zip
fix(archsetup): keep pacman.conf world-readable for AUR builds
User-level makepkg reads /etc/pacman.conf to resolve dependencies, so a root-only file makes every AUR build (starting with yay) fail with "could not be read: Permission denied". A current archangel ISO ships the base pacman.conf as 0600. archsetup already edits the file (ParallelDownloads, Color, multilib), so it now chmods it back to 0644, the Arch default, before the AUR installer runs. The ZFS VM test path surfaced this on a fresh archangel base. The older btrfs base shipped it 0644.
-rwxr-xr-xarchsetup7
1 files changed, 7 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index cc62751..ae87c3a 100755
--- a/archsetup
+++ b/archsetup
@@ -965,6 +965,13 @@ prerequisites() {
# enable multilib repository (required for 32-bit libraries, Steam, etc.)
action="enabling multilib repository" && display "task" "$action"
sed -i '/^#\[multilib\]/{s/^#//;n;s/^#//}' /etc/pacman.conf
+
+ # Keep pacman.conf world-readable. User-level makepkg/yay reads it to
+ # resolve dependencies, so a root-only file makes every AUR build fail with
+ # "/etc/pacman.conf could not be read: Permission denied". Some base images
+ # (a current archangel ISO) ship it 0600; 0644 is the Arch default.
+ chmod 644 /etc/pacman.conf
+
pacman -Sy >> "$logfile" 2>&1
action="Package Mirrors" && display "subtitle" "$action"