summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorCaio Begotti <caio1982@mandriva.org>2008-10-29 18:40:24 +0000
committerCaio Begotti <caio1982@mandriva.org>2008-10-29 18:40:24 +0000
commitea060d82e5a938f311245686c6463f31ef971df8 (patch)
tree17f9300dae77753006fc4c41f0b333adcdb42e89 /rescue/restore-image.sh
parentc8c6b0c44c5314309e9b308e402674e4cb79c55f (diff)
downloaddrakx-backup-do-not-use-ea060d82e5a938f311245686c6463f31ef971df8.tar
drakx-backup-do-not-use-ea060d82e5a938f311245686c6463f31ef971df8.tar.gz
drakx-backup-do-not-use-ea060d82e5a938f311245686c6463f31ef971df8.tar.bz2
drakx-backup-do-not-use-ea060d82e5a938f311245686c6463f31ef971df8.tar.xz
drakx-backup-do-not-use-ea060d82e5a938f311245686c6463f31ef971df8.zip
adding a minimum size for disks to be detected and filter the smalls ones out
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 4e2f06708..07fdc9437 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -74,7 +74,7 @@ do you want to continue?\n "
function detect_root()
{
dev=$(sed '/\/tmp\/media/!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts)
- devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${dev} | awk '{ print $4,$3 }')
+ devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${dev} | awk '$3 > $MIN_DISKSIZE { print $4,$3 }')
devs_found=$(echo $devices | wc -w)
if [ "$devs_found" -gt "2" ]; then