From 2a9079644708eedd190b82675a76372f9c8abd7e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Nov 2007 21:33:43 +0100 Subject: Making umount calls check if they are actually necessary. --- helpers/lh_chroot_sysfs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'helpers/lh_chroot_sysfs') diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs index fef710dd9..b7931ae04 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 -- cgit v1.2.3