summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_devpts
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_devpts')
-rwxr-xr-xhelpers/lh_chroot_devpts5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_devpts b/helpers/lh_chroot_devpts
index 236777a..0024fb9 100755
--- a/helpers/lh_chroot_devpts
+++ b/helpers/lh_chroot_devpts
@@ -70,7 +70,10 @@ case "${1}" in
Create_lockfile .lock
# Unmounting /dev/pts
- ${LH_ROOT_COMMAND} umount chroot/dev/pts > /dev/null 2>&1
+ if [ -e chroot/dev/pts/0 ]
+ then
+ ${LH_ROOT_COMMAND} umount chroot/dev/pts
+ fi
# Removing stage file
rm -f .stage/chroot_devpts