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>.

This commit is contained in:
Daniel Baumann 2008-01-16 10:24:23 +01:00
parent 8b59b61bb2
commit 2576eed731
1 changed files with 1 additions and 1 deletions

View File

@ -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