Codebase list partman-auto / 651efa9
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
3 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1717
1818 choose_recipe default "$target" "$free_size" || exit $?
1919
20 auto_init_disk "$dev" || exit $?
20 auto_init_disks "$dev" || exit $?
2121 get_last_free_partition_infos $dev
2222 else
2323 # Two parameters, being run on selected free space.
1515 * Move get_last_free_partition_infos() out of auto_init_disk() in
1616 lib/auto-shared.sh. autopartition has been updated accordingly.
1717 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.
1821 Breaks: partman-auto-lvm (<< 29)
1922
2023 -- Jérémy Bobbio <[email protected]> Fri, 01 Aug 2008 22:49:11 +0000
00 ## Shared code for all guided partitioning components
11
2 auto_init_disk() {
2 auto_init_disks() {
33 local dev
4 dev="$1"
54
65 # Create new disk label; don't prompt for label
76 . /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
1012 }
1113
1214 get_last_free_partition_infos() {