~ubuntu-branches/ubuntu/maverick/partman-basicfilesystems/maverick

« back to all changes in this revision

Viewing changes to init.d/auto_mountpoints

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Colin Watson, Evan Dandrea
  • Date: 2008-01-14 10:17:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080114101723-10ti1t3mpmvjmyxm
Tags: 56ubuntu2
[ Colin Watson ]
* udev 117 merged all udev tools into a single binary called udevadm.
  Check for this and use it instead of udevinfo if available.

[ Evan Dandrea ]
* Special case loopmounted filesystems as it's safer to format the
  underlying file, not the device (LP: #177868).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
. /lib/partman/definitions.sh
11
11
 
 
12
if type udevadm >/dev/null 2>&1; then
 
13
    udevinfo () {
 
14
        udevadm info "$@"
 
15
    }
 
16
fi
 
17
 
12
18
partitions=
13
19
for dev in $DEVICES/*; do
14
20
    [ -d "$dev" ] || continue