From 62b49b2a3ad1c13012305b4d7281d7f6543c70d7 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 17 Jan 2016 22:57:26 -0800 Subject: rc: remove use of magic constant and allow OpenVZ to drop to shell OpenVZ has had console support for a long time now; allow them to use it to drop to a shell during interactive boot. --- src/rc/rc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rc/rc.c b/src/rc/rc.c index 1aae45ff..7836341e 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -283,9 +283,8 @@ open_shell(void) #ifdef __linux__ const char *sys = rc_sys(); - /* VSERVER and OPENVZ systems cannot really drop to shells */ - if (sys && - (strcmp(sys, "VSERVER") == 0 || strcmp(sys, "OPENVZ") == 0)) + /* VSERVER systems cannot really drop to shells */ + if (sys && strcmp(sys, RC_SYS_VSERVER) == 0) { execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL); eerrorx("%s: unable to exec `/sbin/halt': %s", -- cgit v1.2.3