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
|
then
|
||||||
# Unmounting /sys
|
# Unmounting /sys
|
||||||
#fuser -km chroot/sys
|
#fuser -km chroot/sys
|
||||||
if [ -e chroot/sys/kernel ]
|
if [ -e chroot/sys/class ]
|
||||||
then
|
then
|
||||||
${LH_ROOT_COMMAND} umount chroot/sys
|
${LH_ROOT_COMMAND} umount chroot/sys
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue