[pacman-dev] RFC: [PATCH] Deprecate --root in favour of --sysroot

Eli Schwartz eschwartz at archlinux.org
Fri Jan 19 13:42:58 UTC 2018


On 01/19/2018 08:22 AM, Eli Schwartz wrote:
> On 01/19/2018 06:49 AM, Allan McRae wrote:
>> The --root option was widely misunderstood, and is now replaced by
>> --sysroot.
>>
>> Signed-off-by: Allan McRae <allan at archlinux.org>
>> ---
>>
>> The idea of --sysroot was to provide something that --root never quite
>> did.  Is there any reason to keep --root?
> 
> pacstrap breaks if you try to replace --root with --sysroot, since the
> --sysroot does not yet exist and does not have a pacman.conf.
> 
> We could prepare the newroot by copying /etc/pacman.conf and
> /etc/pacman.d/mirrorlist within pacstrap, but this means if the
> pacman.conf differs from whatever the latest version of pacman has, it
> will be installed as a pacnew.
> 
> Other than that, I cannot think of any reason anyone would wish to use
> --root.

And of course agregory pointed out that now that we also have
pacman-conf we can generate a config and copy it to $newroot/tmp

I say we deprecate --root as fast as possible then. It's basically a bug
that it doesn't behave like --sysroot already, and IIRC we are only
using --sysroot instead of "fixing" --root, is in order to avoid
surprising people who are by now used to the behavior of --root.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20180119/00b7545b/attachment.asc>


More information about the pacman-dev mailing list