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:
parent
8b59b61bb2
commit
2576eed731
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue