Author: hawk
Date: Sun Mar 19 20:35:54 2006
New Revision: 7232
Modified:
bootdisk/trunk/batch-installer/installer-prep
Log:
- when source is already mounted, umount it (fixes mount errors while
doing installation after previously failed one)
Modified: bootdisk/trunk/batch-installer/installer-prep
==============================================================================
--- bootdisk/trunk/batch-installer/installer-prep (original)
+++ bootdisk/trunk/batch-installer/installer-prep Sun Mar 19 20:35:54 2006
@@ -25,7 +25,7 @@
# mount wrapper
mount_source () {
test -d ${source_mountpoint} || mkdir ${source_mountpoint}
- if cat /proc/mounts | grep -q " $source_mountpoint"; then return; fi
+ if cat /proc/mounts | grep -q " $source_mountpoint"; then umount
${source_mountpoint}; fi
log info "`nls "Mounting %s on %s type %s" "${source_device}"
"${source_mountpoint}" "${source_filesystem}"`"
log_wrap_verb mount -t ${source_filesystem} ${source_device}
${source_mountpoint} $@
}
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit