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

« back to all changes in this revision

Viewing changes to update.d/swap

  • 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
dev=$1
 
6
num=$2
 
7
id=$3
 
8
size=$4
 
9
type=$5
 
10
fs=$6
 
11
path=$7
 
12
name=$8
 
13
 
 
14
cd $dev
 
15
 
 
16
[ -f $id/method ] || exit 0
 
17
method=$(cat $id/method)
 
18
 
 
19
if [ "$method" = swap ]; then
 
20
    RET=''
 
21
    db_metaget partman/filesystem_short/linux-swap description || RET=''
 
22
    printf "${RET:-swap}" >$id/visual_filesystem
 
23
    printf "${RET:-swap}" >$id/visual_mountpoint
 
24
fi