diff options
Diffstat (limited to 'helpers/lh_chroot_sysfs')
-rwxr-xr-x | helpers/lh_chroot_sysfs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs index fef710d..b7931ae 100755 --- a/helpers/lh_chroot_sysfs +++ b/helpers/lh_chroot_sysfs @@ -79,7 +79,10 @@ case "${1}" in then # Unmounting /sys #fuser -km chroot/sys - ${LH_ROOT_COMMAND} umount chroot/sys > /dev/null 2>&1 + if [ -e chroot/sys/kernel ] + then + ${LH_ROOT_COMMAND} umount chroot/sys + fi else rm -rf chroot/sys mkdir -p chroot/sys |