~dannf/ubuntu/trusty/partman-auto/xgene

« back to all changes in this revision

Viewing changes to automatically_partition/some_device/do_option

  • Committer: dann frazier
  • Date: 2014-01-15 00:17:52 UTC
  • Revision ID: dann.frazier@canonical.com-20140115001752-hdihkmcd8ds67wfz
init. packaging branches are out of date, so importing w/o history

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. /lib/partman/lib/base.sh
 
4
. /lib/partman/lib/auto-shared.sh
 
5
 
 
6
code=255
 
7
while [ $code -eq 255 ]; do
 
8
        disk=$(select_auto_disk) || exit 99
 
9
        autopartition $disk
 
10
        code=$?
 
11
done
 
12
 
 
13
if [ $code -ne 0 ]; then
 
14
        exit $code
 
15
else
 
16
        # accept the autopartitioning
 
17
        exit 100
 
18
fi