зеркало из https://github.com/Azure/azurehpc.git
Fixing incorrect partition name
If a device ends in a number it seems to add "p1" otherwise just "1" for the first partition. Reverting back to the previous way which lets fdisk tell us.
This commit is contained in:
Родитель
602f257a4c
Коммит
099976d4eb
|
@ -20,7 +20,7 @@ for disk in $devices; do
|
||||||
parted -s $disk print
|
parted -s $disk print
|
||||||
parted -s $disk "set 1 raid on"
|
parted -s $disk "set 1 raid on"
|
||||||
|
|
||||||
partitions="$partitions ${disk}p1"
|
partitions="$partitions $(fdisk -l $disk | grep '^/dev' | cut -d' ' -f1)"
|
||||||
done
|
done
|
||||||
|
|
||||||
ndevices=$(echo $partitions | wc -w)
|
ndevices=$(echo $partitions | wc -w)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче