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 | 2 |
* Add support for writing sizes as a number plus a percentage of RAM, e.g.
|
3 | 3 |
"2000+50%". This is useful when doing automatic partitioning with the
|
4 | 4 |
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).
|
5 | 9 |
|
6 | 10 |
-- Colin Watson <[email protected]> Tue, 16 Jun 2009 13:07:21 +0100
|
7 | 11 |
|
98 | 98 |
echo $scheme | grep -q '\$primary{'; do
|
99 | 99 |
pull_primary
|
100 | 100 |
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
|
102 | 106 |
read_line num id size type fs path name
|
103 | 107 |
close_dialog
|
104 | 108 |
if [ -z "$id" ]; then
|