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

« back to all changes in this revision

Viewing changes to finish.d/aptinstall_basicfilesystems

  • 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
. /lib/partman/definitions.sh
 
4
 
 
5
swap=no
 
6
ext2=no
 
7
fat=no
 
8
 
 
9
for dev in $DEVICES/*; do
 
10
    [ -d "$dev" ] || continue
 
11
    cd $dev
 
12
    partitions=
 
13
    open_dialog PARTITIONS
 
14
    while { read_line num id size type fs path name; [ "$id" ]; }; do
 
15
        [ "$fs" != free ] || continue
 
16
        [ -f $id/method -a -f $id/acting_filesystem ] || continue
 
17
        filesystem=$(cat $id/acting_filesystem)
 
18
        case $filesystem in
 
19
            linux-swap)
 
20
                swap=yes
 
21
                ;;
 
22
            ext2)
 
23
                ext2=yes
 
24
                ;;
 
25
            fat16|fat32)
 
26
                fat=yes
 
27
                ;;
 
28
        esac
 
29
    done
 
30
    close_dialog
 
31
done
 
32
 
 
33
if [ "$ext2" = yes ]; then
 
34
    apt-install e2fsprogs || true
 
35
fi
 
36
 
 
37
if [ "$fat" = yes ]; then
 
38
    apt-install dosfstools || true
 
39
fi
 
40