Commit 0adb3634 authored by Allan McRae's avatar Allan McRae
Browse files

Revert "Deprecate --root in favour of --sysroot"

The use of --sysroot in the real world has flagged some issues that need
addressing.  Undeprecate --root for now.

This reverts commit a278356f

Signed-off-by: Allan McRae's avatarAllan McRae <>
parent acef70c1
......@@ -130,6 +130,16 @@ Options
*NOTE*: If specified, this is an absolute path, and the root path is
not automatically prepended.
*-r, \--root* <path>::
Specify an alternative installation root (default is `/`). This should
not be used as a way to install software into `/usr/local` instead of
*NOTE*: If database path or log file are not specified on either the
command line or in linkman:pacman.conf[5], their default location will
be inside this root path.
*NOTE*: This option is not suitable for performing operations on a mounted
guest system. See '\--sysroot' instead.
*-v, \--verbose*::
Output paths such as as the Root, Conf File, DB Path, Cache Dirs, etc.
......@@ -211,6 +211,7 @@ static void usage(int op, const char * const myname)
addlist(_(" -b, --dbpath <path> set an alternate database location\n"));
addlist(_(" -r, --root <path> set an alternate installation root\n"));
addlist(_(" -v, --verbose be verbose\n"));
addlist(_(" --arch <arch> set an alternate architecture\n"));
addlist(_(" --sysroot operate on a mounted guest system (root-only)\n"));
......@@ -449,8 +450,6 @@ static int parsearg_global(int opt)
case OP_ROOT:
case 'r':
_("option --root is deprecated; use --sysroot instead\n"));
config->rootdir = strdup(optarg);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment