Skip to content

Commit 6958aff

Browse files
littlewu2508williamh
authored andcommitted
Drop PREFIX macro. RC_PREFIX is set in all scenarios
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
1 parent 9214156 commit 6958aff

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

man/openrc-run.8

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ in
304304
Same as -jail, but for Linux Resource Containers (LXC).
305305
.It Dv -openvz
306306
Same as -jail, but for OpenVZ systems.
307-
.It Dv -prefix
308-
Same as -jail, but for Prefix systems.
309307
.It Dv -rkt
310308
Same as -jail, but for RKT systems.
311309
.It Dv -uml
@@ -561,9 +559,6 @@ Default runlevel chosen. Default is default.
561559
.It Va RC_SYS
562560
A special variable to describe the system more.
563561
Possible values are OPENVZ, XENU, XEN0, UML and VSERVER.
564-
.It Va RC_PREFIX
565-
In a Gentoo Prefix installation, this variable contains the prefix
566-
offset. Otherwise it is undefined.
567562
.It Va RC_UNAME
568563
The result of `uname -s`.
569564
.It Va RC_CMD
@@ -615,10 +610,8 @@ rc_provide_tap1="!net"
615610
# To put in in /etc/rc.conf you would do it like this
616611
rc_net_tap1_provide="!net"
617612

618-
# It's also possible to negate keywords. This is mainly useful for prefix
619-
# users testing OpenRC.
620-
rc_keyword="!-prefix"
621-
# This can also be used to block a script from running in all
613+
# It's also possible to negate keywords.
614+
# This can be used to block a script from running in all
622615
# containers except one or two
623616
rc_keyword="!-containers !-docker"
624617
.Ed

src/shared/misc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ env_config(void)
197197
if (sys)
198198
setenv("RC_SYS", sys, 1);
199199

200-
#ifdef PREFIX
201200
setenv("RC_PREFIX", RC_PREFIX, 1);
202-
#endif
203201

204202
/* Some scripts may need to take a different code path if
205203
Linux/FreeBSD, etc

0 commit comments

Comments
 (0)