~ubuntu-branches/ubuntu/hardy/partman-basicfilesystems/hardy-updates

« back to all changes in this revision

Viewing changes to valid_filesystems/ext2

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2004-10-06 02:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20041006024452-dqyxcwf0tarnj0qr
Tags: 26ubuntu1
Set pass field to 0 for FAT filesystems, to prevent filesystem checks
that sometimes behave strangely (closes: Ubuntu #1912).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
dev=$1
 
4
id=$2
 
5
method=$3
 
6
 
 
7
[ -f /var/lib/partman/ext2 ] || exit 0
 
8
 
 
9
case $method in
 
10
    formatable)
 
11
        echo ext2
 
12
        ;;
 
13
    existing)
 
14
        [ -f $id/detected_filesystem ] || exit 0
 
15
        fs=$(cat $id/detected_filesystem)
 
16
        
 
17
        case "$fs" in
 
18
            ext2)
 
19
                echo ext2
 
20
                ;;
 
21
        esac
 
22
        ;;
 
23
esac
 
24
 
 
25