btrfs_raid_fix
This commit is contained in:
parent
d2d8fd00f3
commit
ac2f439b10
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue