[pacman-dev] [RFC] command-line provided paths under --sysroot

Allan McRae allan at archlinux.org
Sat Jan 16 10:32:24 UTC 2021


On 16/1/21 5:47 pm, Andrew Gregory wrote:
> Implementing --sysroot the lazy way with a simple chroot turned out to
> have a number of complications that significantly reduce its utility.
> I've been sitting on a patch to reimplement it by prefixing all
> configuration paths with the sysroot, but this raises the question of
> how we should handle paths provided on the command line.  Using chroot
> meant that all paths, regardless of what they were or where they came
> from, would be interpreted relative to the sysroot.  Switching to
> manually adjusting paths means that we have the option to change that.
> 
> I'm inclined to change pacman to use command line arguments/options
> as-is and have --sysroot just modify values from the config file.
> I think that's the friendlier option for users.
> 

I think that is the right approach, but I'd really like input from the
archiso and pacstrap maintainers, as they use these options and I
believe have had issues this should solve.

A


More information about the pacman-dev mailing list