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
152c9800
Unverified
Commit
152c9800
authored
Dec 03, 2017
by
Stéphane Graber
Committed by
GitHub
Dec 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1989 from p-l-/fix-lxc-checkconfig
Fix lxc-checkconfig output
parents
331ae3a2
edf3320c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lxc-checkconfig.in
src/lxc/tools/lxc-checkconfig.in
+6
-3
No files found.
src/lxc/tools/lxc-checkconfig.in
View file @
152c9800
...
@@ -126,6 +126,7 @@ echo -n "Network namespace: " && is_enabled CONFIG_NET_NS
...
@@ -126,6 +126,7 @@ echo -n "Network namespace: " && is_enabled CONFIG_NET_NS
echo
echo
if
([
$KVER_MAJOR
-lt
4
])
||
([
$KVER_MAJOR
-eq
4
]
&&
[
$KVER_MINOR
-lt
7
])
;
then
if
([
$KVER_MAJOR
-lt
4
])
||
([
$KVER_MAJOR
-eq
4
]
&&
[
$KVER_MINOR
-lt
7
])
;
then
echo
-n
"Multiple /dev/pts instances: "
&&
is_enabled DEVPTS_MULTIPLE_INSTANCES
echo
-n
"Multiple /dev/pts instances: "
&&
is_enabled DEVPTS_MULTIPLE_INSTANCES
echo
fi
fi
echo
echo
...
@@ -153,14 +154,14 @@ echo
...
@@ -153,14 +154,14 @@ echo
CGROUP_SYSTEMD_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/systemd"
`
CGROUP_SYSTEMD_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/systemd"
`
if
[
-z
"
$CGROUP_SYSTEMD_MNTPT
"
]
;
then
if
[
-z
"
$CGROUP_SYSTEMD_MNTPT
"
]
;
then
echo
-n
"Cgroup v1 systemd controller: "
echo
-n
"Cgroup v1 systemd controller: "
"
$SETCOLOR_FAILURE
"
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
$SETCOLOR_FAILURE
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
echo
echo
fi
fi
CGROUP_FREEZER_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/freezer"
`
CGROUP_FREEZER_MNTPT
=
`
echo
"
$CGROUP_V1_MNTS
"
|
grep
"/freezer"
`
if
[
-z
"
$CGROUP_FREEZER_MNTPT
"
]
;
then
if
[
-z
"
$CGROUP_FREEZER_MNTPT
"
]
;
then
echo
-n
"Cgroup v1 freezer controller: "
echo
-n
"Cgroup v1 freezer controller: "
"
$SETCOLOR_FAILURE
"
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
$SETCOLOR_FAILURE
&&
echo
-n
"missing"
&&
$SETCOLOR_NORMAL
echo
echo
fi
fi
...
@@ -170,6 +171,7 @@ if [ -f $CGROUP_MNT_PATH/cgroup.clone_children ]; then
...
@@ -170,6 +171,7 @@ if [ -f $CGROUP_MNT_PATH/cgroup.clone_children ]; then
$SETCOLOR_SUCCESS
&&
echo
"enabled"
&&
$SETCOLOR_NORMAL
$SETCOLOR_SUCCESS
&&
echo
"enabled"
&&
$SETCOLOR_NORMAL
else
else
echo
-n
"Cgroup namespace: "
&&
is_enabled CONFIG_CGROUP_NS
yes
echo
-n
"Cgroup namespace: "
&&
is_enabled CONFIG_CGROUP_NS
yes
echo
fi
fi
echo
-n
"Cgroup device: "
&&
is_enabled CONFIG_CGROUP_DEVICE
echo
-n
"Cgroup device: "
&&
is_enabled CONFIG_CGROUP_DEVICE
...
@@ -212,6 +214,7 @@ echo
...
@@ -212,6 +214,7 @@ echo
echo
-n
"CONFIG_IP6_NF_TARGET_MASQUERADE: "
&&
is_enabled CONFIG_IP6_NF_TARGET_MASQUERADE
&&
is_probed nf_nat_masquerade_ipv6
echo
-n
"CONFIG_IP6_NF_TARGET_MASQUERADE: "
&&
is_enabled CONFIG_IP6_NF_TARGET_MASQUERADE
&&
is_probed nf_nat_masquerade_ipv6
echo
echo
echo
-n
"CONFIG_NETFILTER_XT_TARGET_CHECKSUM: "
&&
is_enabled CONFIG_NETFILTER_XT_TARGET_CHECKSUM
&&
is_probed xt_CHECKSUM
echo
-n
"CONFIG_NETFILTER_XT_TARGET_CHECKSUM: "
&&
is_enabled CONFIG_NETFILTER_XT_TARGET_CHECKSUM
&&
is_probed xt_CHECKSUM
echo
echo
-n
"CONFIG_NETFILTER_XT_MATCH_COMMENT: "
&&
is_enabled CONFIG_NETFILTER_XT_MATCH_COMMENT
&&
is_probed xt_comment
echo
-n
"CONFIG_NETFILTER_XT_MATCH_COMMENT: "
&&
is_enabled CONFIG_NETFILTER_XT_MATCH_COMMENT
&&
is_probed xt_comment
echo
echo
echo
-n
"FUSE (for use with lxcfs): "
&&
is_enabled CONFIG_FUSE_FS
&&
is_probed fuse
echo
-n
"FUSE (for use with lxcfs): "
&&
is_enabled CONFIG_FUSE_FS
&&
is_probed fuse
...
@@ -237,7 +240,7 @@ echo -n "CONFIG_NETLINK_DIAG: " && is_enabled CONFIG_NETLINK_DIAG
...
@@ -237,7 +240,7 @@ echo -n "CONFIG_NETLINK_DIAG: " && is_enabled CONFIG_NETLINK_DIAG
echo
echo
echo
-n
"File capabilities: "
&&
\
echo
-n
"File capabilities: "
&&
\
(
[
"
${
KVER_MAJOR
}
"
=
2
]
&&
[
${
KVER_MINOR
}
-lt
33
]
&&
\
(
[
"
${
KVER_MAJOR
}
"
=
2
]
&&
[
${
KVER_MINOR
}
-lt
33
]
&&
\
is_enabled CONFIG_SECURITY_FILE_CAPABILITIES
)
||
\
is_enabled CONFIG_SECURITY_FILE_CAPABILITIES
;
echo
)
||
\
(
(
[
"
${
KVER_MAJOR
}
"
=
"2"
]
&&
[
${
KVER_MINOR
}
-gt
32
]
)
||
\
(
(
[
"
${
KVER_MAJOR
}
"
=
"2"
]
&&
[
${
KVER_MINOR
}
-gt
32
]
)
||
\
[
${
KVER_MAJOR
}
-gt
2
]
&&
$SETCOLOR_SUCCESS
&&
\
[
${
KVER_MAJOR
}
-gt
2
]
&&
$SETCOLOR_SUCCESS
&&
\
echo
"enabled"
&&
$SETCOLOR_NORMAL
)
echo
"enabled"
&&
$SETCOLOR_NORMAL
)
...
...
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