diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 14:39:08 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 14:39:08 -0400 |
| commit | 66caeb5ca7dbe497fa40c5a5d321548f7a879b27 (patch) | |
| tree | 2b83f2989804b3ae1e1c7dc476d4fe053f050ac5 | |
| parent | 8ed42b96cfd0d365678392ef65c99d24c9f2de82 (diff) | |
| download | archsetup-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-x | archsetup | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" |
