btrfs_raid_fix

This commit is contained in:
simono41 2018-06-09 07:14:38 +02:00
parent d2d8fd00f3
commit ac2f439b10

View file

@ -526,13 +526,13 @@ function grubinstall() {
function btrfsformat() { function btrfsformat() {
if [ "$raid" == "raid0" ]; then if [ "$raid" == "raid0" ]; then
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
mkfs.btrfs -f -m raid10 -d raid10 ${deviceluks} ${device1} mkfs.btrfs -f -m raid0 -d raid0 ${deviceluks} ${device1}
else else
mkfs.btrfs -f -m raid0 -d raid0 ${device}${rootpartitionnummer} ${device1} mkfs.btrfs -f -m raid0 -d raid0 ${device}${rootpartitionnummer} ${device1}
fi fi
elif [ "$raid" == "raid1" ]; then elif [ "$raid" == "raid1" ]; then
if [ "${verschluesselung}" == "y" ]; then if [ "${verschluesselung}" == "y" ]; then
mkfs.btrfs -f -m raid10 -d raid10 ${deviceluks} ${device1} mkfs.btrfs -f -m raid1 -d raid1 ${deviceluks} ${device1}
else else
mkfs.btrfs -f -m raid1 -d raid1 ${device}${rootpartitionnummer} ${device1} mkfs.btrfs -f -m raid1 -d raid1 ${device}${rootpartitionnummer} ${device1}
fi fi