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
8bb17b77
Commit
8bb17b77
authored
Aug 13, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountcgroups: use the right configuration file!
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
79159a86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mountcgroups
hooks/mountcgroups
+2
-1
No files found.
hooks/mountcgroups
View file @
8bb17b77
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
set
-e
set
-e
c
=
$1
c
=
$1
configfile
=
$LXC_CONFIG_FILE
d
=
/sys/fs/cgroup
d
=
/sys/fs/cgroup
d2
=
$LXC_ROOTFS_MOUNT
/
${
d
}
d2
=
$LXC_ROOTFS_MOUNT
/
${
d
}
# name lxc hook lxcpath
# name lxc hook lxcpath
...
@@ -42,7 +43,7 @@ do_devices_setup() {
...
@@ -42,7 +43,7 @@ do_devices_setup() {
local
line
local
line
local
w
# which (allow or deny)
local
w
# which (allow or deny)
local
v
# value
local
v
# value
egrep
"^lxc.cgroup.devices.(allow|deny)[
\t
]*="
${
lxcpath
}
/
${
c
}
/config
|
while
read
line
;
do
egrep
"^lxc.cgroup.devices.(allow|deny)[
\t
]*="
${
configfile
}
|
while
read
line
;
do
w
=
`
echo
$line
|
awk
-F
.
'{ print $4 }'
|
awk
'{ print $1 }'
`
w
=
`
echo
$line
|
awk
-F
.
'{ print $4 }'
|
awk
'{ print $1 }'
`
v
=
`
echo
$line
|
awk
-F
=
'{ print $2 }'
`
v
=
`
echo
$line
|
awk
-F
=
'{ print $2 }'
`
echo
"
$v
"
>>
"
$devdir
"
/devices.
$w
echo
"
$v
"
>>
"
$devdir
"
/devices.
$w
...
...
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