Compare commits
6 Commits
openrc-0.9
...
openrc-0.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14b7f0e7fa | ||
|
|
e45cd15930 | ||
|
|
e4ce98b3b4 | ||
|
|
8a41537f68 | ||
|
|
d8a5d35760 | ||
|
|
cc8a9cdab9 |
@@ -1,3 +1,3 @@
|
|||||||
NAME= openrc
|
NAME= openrc
|
||||||
VERSION= 0.9.8.2
|
VERSION= 0.9.8.4
|
||||||
PKG= ${NAME}-${VERSION}
|
PKG= ${NAME}-${VERSION}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ depend()
|
|||||||
need localmount
|
need localmount
|
||||||
after bootmisc
|
after bootmisc
|
||||||
provide net
|
provide net
|
||||||
keyword -shutdown -jail -prefix -vserver
|
keyword -jail -prefix -vserver
|
||||||
|
|
||||||
case "${IFACE}" in
|
case "${IFACE}" in
|
||||||
lo|lo0);;
|
lo|lo0);;
|
||||||
|
|||||||
@@ -74,15 +74,13 @@ mount_misc()
|
|||||||
|
|
||||||
mount_cgroups()
|
mount_cgroups()
|
||||||
{
|
{
|
||||||
yesno ${rc_cgroups:-YES} || return 0
|
yesno ${rc_cgroups:-YES} && [ -e /proc/cgroups ] && \
|
||||||
if [ ! -e /proc/cgroups ]; then
|
mountinfo -q /sys/fs/cgroup || return 0
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
while read name hier groups enabled rest; do
|
while read name hier groups enabled rest; do
|
||||||
case "${enabled}" in
|
case "${enabled}" in
|
||||||
1) mkdir /sys/fs/cgroup/${name}
|
1) mkdir /sys/fs/cgroup/${name}
|
||||||
mount -t cgroup -o nodev,noexec,nosuid,${name} \
|
mount -n -t cgroup -o nodev,noexec,nosuid,${name} \
|
||||||
${name} /sys/fs/cgroup/${name}
|
${name} /sys/fs/cgroup/${name}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user