~ubuntu-branches/ubuntu/lucid/lupin/lucid-proposed

« back to all changes in this revision

Viewing changes to casper/scripts/lupin-helpers

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Agostino Russo, Colin Watson
  • Date: 2007-10-02 23:29:11 UTC
  • Revision ID: james.westby@ubuntu.com-20071002232911-4xx2wozoqa3xunsb
Tags: 0.8
[ Agostino Russo ]
* Added importing of override_files, so that external files can be used by
  early_command (once that is supported).
* Removed importing of early_command, late_command and packages, to be
  replaced with native facilities in ubiquity at a later point.

[ Colin Watson ]
* Fix typo that broke find_path_cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
{
72
72
    # must match find_path
73
73
    local default_mountpoint="${1:-/tmpmountpoint}"
74
 
    if grep -q "^[ ]* $default_mountpoint " /proc/mounts; then
 
74
    if grep -q "^[^ ]* $default_mountpoint " /proc/mounts; then
75
75
        umount "$default_mountpoint" 2>/dev/null || true
76
76
    fi
77
77
    rmdir "$default_mountpoint" 2>/dev/null || true