mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-26 17:51:48 +01:00
stop migration if HDD is too small
This commit is contained in:
parent
29351ebeb1
commit
07d3557ed9
@ -262,6 +262,12 @@ if [ "$1" = "import-gui" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check if HDD/SSD is big enough
|
||||
if [ ${hddGigaBytes} -lt 120 ]; then
|
||||
echo "FAIL --> connected HDD/SSD is too small"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ask format for new HDD/SSD
|
||||
OPTIONS=(EXT4 "Ext4 & 1 Partition (default)" \
|
||||
BTRFS "BTRFS & 3 Partinions (experimental)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user