Respect directories specified in /etc/pacman.conf

Right now pacstrap assumes default values for configurable directories, like DBPath, CacheDir, etc. This change uses pacman-conf to read those directories (from the default /etc/pacman.conf or the file provided with the -c) and create them under the target directory.

What's more, if the -G arg is specified, the copied keyring location respects both the host's and target's pacman.conf

Additionally, this change fixes arguments passed to pacman:

  • --cachedir is changed to respect CacheDir
  • -b flag is added to respect the DBPath.
Edited by Mateusz Resterny

Merge request reports

Loading