Codebase list partman-auto / 5d4e9dd
If we're creating primary partitions and find that we've reached the end of the recipe, use "full" rather than "beginning" as the place passed to NEW_PARTITION, thereby avoiding rounding problems and matching the process for creating logical partitions (closes: #516347, LP: #287571). r59347 Colin Watson 14 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22 * Add support for writing sizes as a number plus a percentage of RAM, e.g.
33 "2000+50%". This is useful when doing automatic partitioning with the
44 expectation of creating swap files.
5 * If we're creating primary partitions and find that we've reached the end
6 of the recipe, use "full" rather than "beginning" as the place passed to
7 NEW_PARTITION, thereby avoiding rounding problems and matching the
8 process for creating logical partitions (closes: #516347, LP: #287571).
59
610 -- Colin Watson <[email protected]> Tue, 16 Jun 2009 13:07:21 +0100
711
9898 echo $scheme | grep -q '\$primary{'; do
9999 pull_primary
100100 set -- $primary
101 open_dialog NEW_PARTITION primary $4 $free_space beginning ${1}000001
101 if [ -z "$scheme_rest" ]; then
102 open_dialog NEW_PARTITION primary $4 $free_space full ${1}000001
103 else
104 open_dialog NEW_PARTITION primary $4 $free_space beginning ${1}000001
105 fi
102106 read_line num id size type fs path name
103107 close_dialog
104108 if [ -z "$id" ]; then