From 5effdba2ee7781f2d52d9e78512ac1f5c31cba02 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 29 Oct 2008 18:56:39 +0000 Subject: fix using min disk size --- rescue/restore-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rescue') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 07fdc9437..2e0c37dc9 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 '$3 > $MIN_DISKSIZE { 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 -- cgit v1.2.1