summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 7ad4d17e8..4a5ec9499 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -127,11 +127,9 @@ function detect_and_resize_win32()
# from detect_root()
skip_dev=${1}
- # we might use it later again
- fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} > /tmp/fdisk.log
# get the last created windows partition information
set -f
- first_win32_part_dev=$(grep -e "FAT\|NTFS\|HPFS" /tmp/fdisk.log | tail -1 | sed 's/ .*$//')
+ first_win32_part_dev=$(fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} | grep -e "FAT\|NTFS\|HPFS" | tail -1 | sed 's/ .*$//')
set +f
if [ -z "${first_win32_part_dev}" ]; then