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