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:
-
--cachediris changed to respectCacheDir -
-bflag is added to respect theDBPath.
Edited by Mateusz Resterny