mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-18 05:41:47 +01:00
replace BTRFS detection
This commit is contained in:
parent
a754ada08e
commit
efd4cf7b59
@ -774,7 +774,7 @@ fi
|
||||
if [ "$1" = "raid" ] && [ "$2" = "off" ]; then
|
||||
|
||||
# checking if BTRFS mode
|
||||
isBTRFS=$(lsblk -o FSTYPE,MOUNTPOINT | grep /mnt/hdd | awk '$1=$1' | cut -d " " -f 1 | grep -c btrfs)
|
||||
isBTRFS=$(sudo btrfs filesystem show 2>/dev/null| grep -c 'BLITZSTORAGE')
|
||||
if [ ${isBTRFS} -eq 0 ]; then
|
||||
echo "error='raid only BTRFS'"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user