Rename auto_init_disk() to auto_init_disks()
As it can now initialize multiple disks at once, auto_init_disk() has
been renamed to auto_init_disks().
autopartition and auto_lvm_perform() have been updated accordingly.
r55261
Jérémy Bobbio
15 years ago
17 | 17 |
|
18 | 18 |
choose_recipe default "$target" "$free_size" || exit $?
|
19 | 19 |
|
20 | |
auto_init_disk "$dev" || exit $?
|
|
20 |
auto_init_disks "$dev" || exit $?
|
21 | 21 |
get_last_free_partition_infos $dev
|
22 | 22 |
else
|
23 | 23 |
# Two parameters, being run on selected free space.
|
15 | 15 |
* Move get_last_free_partition_infos() out of auto_init_disk() in
|
16 | 16 |
lib/auto-shared.sh. autopartition has been updated accordingly.
|
17 | 17 |
Based on a patch by Grégory Oestreicher.
|
|
18 |
Breaks: partman-auto-lvm (<< 29)
|
|
19 |
* Rename auto_init_disk() to auto_init_disks() as it can now initialize
|
|
20 |
multiple disks at once. autopartition has been updated accordingly.
|
18 | 21 |
Breaks: partman-auto-lvm (<< 29)
|
19 | 22 |
|
20 | 23 |
-- Jérémy Bobbio <[email protected]> Fri, 01 Aug 2008 22:49:11 +0000
|
0 | 0 |
## Shared code for all guided partitioning components
|
1 | 1 |
|
2 | |
auto_init_disk() {
|
|
2 |
auto_init_disks() {
|
3 | 3 |
local dev
|
4 | |
dev="$1"
|
5 | 4 |
|
6 | 5 |
# Create new disk label; don't prompt for label
|
7 | 6 |
. /lib/partman/lib/disk-label.sh
|
8 | |
prepare_new_labels "$dev" || return 1
|
9 | |
create_new_label "$dev" no || return 1
|
|
7 |
prepare_new_labels "$@" || return 1
|
|
8 |
|
|
9 |
for dev in "$@"; do
|
|
10 |
create_new_label "$dev" no || return 1
|
|
11 |
done
|
10 | 12 |
}
|
11 | 13 |
|
12 | 14 |
get_last_free_partition_infos() {
|