installer.kmdr: added check for home partition size >= 512MB, mostly as the simplest way to avoid displaying extended or other partitions

This commit is contained in:
Silvan Calarco 2011-10-06 17:04:03 +02:00
parent 883b67fea7
commit 833f6c8925

View File

@ -2707,6 +2707,7 @@ for device in $devices; do
volsize=`get_udisks_key $device size` volsize=`get_udisks_key $device size`
volsize=`expr $volsize / 1024 / 1024` volsize=`expr $volsize / 1024 / 1024`
volname=`get_udisks_key $device label` volname=`get_udisks_key $device label`
[ $volsize -ge 512 ] || continue
[ "$volname" ] || volname="unnamed" [ "$volname" ] || volname="unnamed"
parttype=`get_udisks_key $device usage` parttype=`get_udisks_key $device usage`
[ "$parttype" ] || parttype="unknown" [ "$parttype" ] || parttype="unknown"