#
# RAID0: forces raid0 filesystem. Normally with 4+ devices, we use
# raid10.
+# RAID1: forces raid1 filesystem.
if [[ $SPECIAL_DISK ]]; then
export CLASS_REPARTITION=true
fi
done
-if ifclass RAID0 || (( ${#boot_devs[@]} < 4 )); then
+if ifclass RAID0 || (( ${#boot_devs[@]} == 1 )); then
raid_level=0
+elif ifclass RAID1 || (( ${#boot_devs[@]} <= 3 )); then
+ raid_level=1
else
raid_level=10
# need double the space if we are raid 10, and then
DISTRO=trisquelbelenos
elif ifclass VOL_FLIDAS; then
DISTRO=trisquelflidas
+ elif ifclass VOL_ETIONA; then
+ DISTRO=trisqueletiona
else
echo "PARTITIONER ERROR: no distro class/var set" >&2
exit 1
bpart() { # btrfs a partition
case $raid_level in
0) mkfs.btrfs -f $@ ;;
+ 1) mkfs.btrfs -f -m raid1 -d raid1 $@ ;;
10) mkfs.btrfs -f -m raid10 -d raid10 $@ ;;
esac
}
if ifclass tpnew; then
lukspw=$(cat $luks_dir/traci)
fi
+if ifclass ziva; then
+ lukspw=$(cat $luks_dir/ziva)
+fi
if ifclass demohost; then
lukspw=x
fi