Fix btrfs for PR #1615 (#1628)

This commit is contained in:
Holger Nahrstaedt 2020-10-06 18:49:11 +00:00 committed by rootzoll
parent 204e736cbd
commit b0f5bdff61

View File

@ -211,12 +211,8 @@ if [ "$1" = "status" ]; then
hddFormat=$(lsblk -o FSTYPE,NAME,TYPE | grep part | grep "${hddDataPartition}" | cut -d " " -f 1)
if [ "${hddFormat}" = "ext4" ]; then
hddDataPartitionExt4=$hddDataPartition
subVolumeDir=""
fi
if [ "${hddFormat}" = "btrfs" ]; then
subVolumeDir="/WORKINGDIR"
fi
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} | grep -c raspiblitz.conf)
hddRaspiData=$(sudo ls -l /mnt/hdd | grep -c raspiblitz.conf)
echo "hddRaspiData=${hddRaspiData}"
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)