The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxcfs/pull/282
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Mount `/sys/devices/system/cpu/online` introduced by #278.
From 24ee58a5c782561ed6f2118c63be4b7b8c8b23a4 Mon Sep 17 00:00:00 2001 From: Jakub Skokan <[email protected]> Date: Tue, 21 May 2019 15:50:54 +0200 Subject: [PATCH] mount hook: mount /sys/devices/system/cpu/online Signed-off-by: Jakub Skokan <[email protected]> --- share/lxc.mount.hook.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/lxc.mount.hook.in b/share/lxc.mount.hook.in index 74a1e46..c70eec3 100755 --- a/share/lxc.mount.hook.in +++ b/share/lxc.mount.hook.in @@ -22,6 +22,13 @@ if [ -d @LXCFSTARGETDIR@/proc/ ]; then done fi +# /sys/devices/system/cpu +if [ -d @LXCFSTARGETDIR@/sys/devices/system/cpu ] ; then + for entry in @LXCFSTARGETDIR@/sys/devices/system/cpu/*; do + [ -e "${LXC_ROOTFS_MOUNT}/sys/devices/system/cpu/$(basename $entry)" ] || continue + mount -n --bind $entry ${LXC_ROOTFS_MOUNT}/sys/devices/system/cpu/$(basename $entry) + done +fi # Allow nesting lxcfs if [ -d ${LXC_ROOTFS_MOUNT}@LXCFSTARGETDIR@/ ]; then
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
