diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-29 18:56:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-29 18:56:39 +0000 |
commit | 5effdba2ee7781f2d52d9e78512ac1f5c31cba02 (patch) | |
tree | 42939918dbcf312f781760929c35e47ac0bec47e /rescue/restore-image.sh | |
parent | ea060d82e5a938f311245686c6463f31ef971df8 (diff) | |
download | drakx-5effdba2ee7781f2d52d9e78512ac1f5c31cba02.tar drakx-5effdba2ee7781f2d52d9e78512ac1f5c31cba02.tar.gz drakx-5effdba2ee7781f2d52d9e78512ac1f5c31cba02.tar.bz2 drakx-5effdba2ee7781f2d52d9e78512ac1f5c31cba02.tar.xz drakx-5effdba2ee7781f2d52d9e78512ac1f5c31cba02.zip |
fix using min disk size
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |