From 324621f3f4dd8c5b9c6fa818f67b44e45ad26663 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Wed, 16 Jan 2008 10:24:23 +0100
Subject: Checking for /sys/class rather than /sys/kernel, avoids problem when
running under OpenVZ which doesn't have sys/kernel, thanks to Takeshi
Yaegashi <yaegashi@debian.org>.
---
helpers/lh_chroot_sysfs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs
index 04e67de..c9d07aa 100755
--- a/helpers/lh_chroot_sysfs
+++ b/helpers/lh_chroot_sysfs
@@ -81,7 +81,7 @@ case "${1}" in
then
# Unmounting /sys
#fuser -km chroot/sys
- if [ -e chroot/sys/kernel ]
+ if [ -e chroot/sys/class ]
then
${LH_ROOT_COMMAND} umount chroot/sys
fi
--
cgit v1.0