mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 00:18:10 +02:00
better hdd ext4 detection
This commit is contained in:
parent
07c4722686
commit
9960966c95
@ -113,7 +113,7 @@ if [ ${#hddIsAutoMounted} -eq 0 ]; then
|
||||
fi
|
||||
|
||||
# check if HDD is formatted EXT4
|
||||
hddExt4=$(df -T /dev/${hddDeviceName} | grep -c "ext4")
|
||||
hddExt4=$(lsblk -o NAME,FSTYPE -b /dev/${hddDeviceName} | grep -c "ext4")
|
||||
if [ ${hddExt4} -eq 0 ]; then
|
||||
echo "HDD is NOT formatted in ext4." >> $logFile
|
||||
# stop the bootstrap here ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user