Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
e4be55c4
Commit
e4be55c4
authored
Apr 13, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #971 from hallyn/2016-04-12/nosystemd
cgfsng: don't require that systemd subsystem be mounted
parents
c4828d74
c30b61c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
cgfsng.c
src/lxc/cgfsng.c
+2
-7
cgroup.c
src/lxc/cgroup.c
+6
-1
No files found.
src/lxc/cgfsng.c
View file @
e4be55c4
...
@@ -407,19 +407,14 @@ static bool controller_found(struct hierarchy **hlist, char *entry)
...
@@ -407,19 +407,14 @@ static bool controller_found(struct hierarchy **hlist, char *entry)
}
}
/*
/*
* Return true if all of the controllers which we require have been
* Return true if all of the controllers which we require have been found.
* found. The required list is systemd, freezer, and anything in
* The required list is freezer and anything in * lxc.cgroup.use.
* lxc.cgroup.use.
*/
*/
static
bool
all_controllers_found
(
void
)
static
bool
all_controllers_found
(
void
)
{
{
char
*
p
,
*
saveptr
=
NULL
;
char
*
p
,
*
saveptr
=
NULL
;
struct
hierarchy
**
hlist
=
hierarchies
;
struct
hierarchy
**
hlist
=
hierarchies
;
if
(
!
controller_found
(
hlist
,
"name=systemd"
))
{
ERROR
(
"no systemd controller mountpoint found"
);
return
false
;
}
if
(
!
controller_found
(
hlist
,
"freezer"
))
{
if
(
!
controller_found
(
hlist
,
"freezer"
))
{
ERROR
(
"no freezer controller mountpoint found"
);
ERROR
(
"no freezer controller mountpoint found"
);
return
false
;
return
false
;
...
...
src/lxc/cgroup.c
View file @
e4be55c4
...
@@ -226,7 +226,12 @@ void prune_init_scope(char *cg)
...
@@ -226,7 +226,12 @@ void prune_init_scope(char *cg)
/*
/*
* Return true if this is a subsystem which we cannot do
* Return true if this is a subsystem which we cannot do
* without
* without.
*
* systemd is questionable here. The way callers currently
* use this, if systemd is not mounted then it will be ignored.
* But if systemd is mounted, then it must be setup so that lxc
* can create cgroups in it, else containers will fail.
*/
*/
bool
is_crucial_cgroup_subsystem
(
const
char
*
s
)
bool
is_crucial_cgroup_subsystem
(
const
char
*
s
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment