Codebase list partman-auto / da2d5d8
Initialize all disks at once when doing RAID autopartitioning In order to avoid extra partman restarts which will result in a broken state, all disks that are autopartitioned using the "raid" method will now be initialized at once. r55270 Jérémy Bobbio 15 years ago
2 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2222 * Call autopartition-lvm on all disks in partman-auto/disk at once to enable
2323 proper support of multiple disks partitioning.
2424 Depends: partman-auto-lvm (>= 29)
25 * Call auto_init_disks() with all disks that are going to be used in a
26 "raid" method in order to avoid bogus partman restarts.
2527
2628 -- Jérémy Bobbio <[email protected]> Fri, 01 Aug 2008 22:49:11 +0000
2729
8080 raid)
8181 # Partition all the disks given ready for
8282 # partman-auto-raid
83 ids=""
8384 for disk in $disks; do
8485 id=$(dev_to_partman "$disk") || true
85 if [ "$id" ]; then
86 autopartition "$id"
87 fi
86 ids="${ids:+$ids }$id"
87 done
88 auto_init_disks $ids || exit $?
89 for id in $ids; do
90 autopartition "$id"
8891 done
8992 exit 0
9093 ;;