summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_sysfs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-01-16 10:24:23 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:35:48 +0100
commit324621f3f4dd8c5b9c6fa818f67b44e45ad26663 (patch)
treedfd5523a5127ceb88155fc0d487cc8da2956ab6d /helpers/lh_chroot_sysfs
parent33e33cec7d89d97d0a04ff44a3a432dde696ee02 (diff)
downloadlive-build-324621f3f4dd8c5b9c6fa818f67b44e45ad26663.zip
live-build-324621f3f4dd8c5b9c6fa818f67b44e45ad26663.tar.gz
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>.
Diffstat (limited to 'helpers/lh_chroot_sysfs')
-rwxr-xr-xhelpers/lh_chroot_sysfs2
1 files changed, 1 insertions, 1 deletions
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