stop migration if HDD is too small

This commit is contained in:
rootzoll 2020-02-14 23:21:53 +01:00
parent 29351ebeb1
commit 07d3557ed9

View File

@ -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)"