~ubuntu-branches/ubuntu/lucid/partman-basicmethods/lucid

« back to all changes in this revision

Viewing changes to choose_method/dont_use/do_option

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador, Updated translations
  • Date: 2008-09-21 21:06:02 UTC
  • mfrom: (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080921210602-7worzun5i0616rfd
Tags: 42
[ Updated translations ]
* Arabic (ar.po) by Ossama M. Khayat
* Bosnian (bs.po) by Armin Besirovic
* Welsh (cy.po) by Jonathan Price
* Danish (da.po)
* Croatian (hr.po) by Josip Rodin
* Latvian (lv.po) by Peteris Krisjanis
* Macedonian (mk.po) by Arangel Angov
* Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
* Serbian (sr.po) by Veselin Mijušković

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
 
3
. /lib/partman/lib/base.sh
 
4
 
3
5
dev=$2
4
6
id=$3
5
7
 
6
 
rm -f $dev/$id/method
7
 
rm -f $dev/$id/format
8
 
rm -f $dev/$id/use_filesystem
 
8
cd $dev
 
9
 
 
10
rm -f $id/method
 
11
rm -f $id/format
 
12
rm -f $id/use_filesystem
 
13
 
 
14
flags=''
 
15
open_dialog GET_FLAGS $id
 
16
while { read_line flag; [ "$flag" ]; }; do
 
17
        case $flag in
 
18
            lvm|raid|swap)
 
19
                continue
 
20
                ;;
 
21
            *)
 
22
                flags="${flags:+$flags$NL}$flag"
 
23
                ;;
 
24
        esac
 
25
done
 
26
close_dialog
 
27
 
 
28
open_dialog SET_FLAGS $id
 
29
write_line "$flags"
 
30
write_line NO_MORE
 
31
close_dialog