~ubuntu-branches/ubuntu/dapper/partman-base/dapper

« back to all changes in this revision

Viewing changes to free_space/chs/do_option

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-02 20:38:56 UTC
  • Revision ID: james.westby@ubuntu.com-20051002203856-etvkahfdgcx6clql
Tags: 70ubuntu3
* Backport from trunk:
  - Stop USES_EXTENDED command from segfaulting if called on a device
    without a partition table (e.g. a DVD-RW).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. /lib/partman/definitions.sh
 
4
 
 
5
dev="$2"
 
6
id=$3
 
7
 
 
8
cd $dev
 
9
 
 
10
open_dialog GET_CHS $id
 
11
read_line cs hs ss ce he se
 
12
close_dialog
 
13
 
 
14
db_subst partman/show_free_chs FROMCHS "($cs,$hs,$ss)"
 
15
db_subst partman/show_free_chs TOCHS "($ce,$he,$se)"
 
16
 
 
17
db_input critical partman/show_free_chs || true
 
18
db_go || true