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.
This commit is contained in:
parent
4c814a0a28
commit
62b49b2a3a
@ -283,9 +283,8 @@ open_shell(void)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
const char *sys = rc_sys();
|
const char *sys = rc_sys();
|
||||||
|
|
||||||
/* VSERVER and OPENVZ systems cannot really drop to shells */
|
/* VSERVER systems cannot really drop to shells */
|
||||||
if (sys &&
|
if (sys && strcmp(sys, RC_SYS_VSERVER) == 0)
|
||||||
(strcmp(sys, "VSERVER") == 0 || strcmp(sys, "OPENVZ") == 0))
|
|
||||||
{
|
{
|
||||||
execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL);
|
execl("/sbin/halt", "/sbin/halt", "-f", (char *) NULL);
|
||||||
eerrorx("%s: unable to exec `/sbin/halt': %s",
|
eerrorx("%s: unable to exec `/sbin/halt': %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user