diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:27:22 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-02-11 15:27:22 +0000 |
commit | 26a985b6fc1ad4250c4ea21500c44be05da95bd3 (patch) | |
tree | ef407b47711068a89a379f63dafe2c9fc3e1b5b0 /rescue | |
parent | ae0e97e233c57d01e5c1fcb05e6243535d5f061f (diff) | |
download | drakx-26a985b6fc1ad4250c4ea21500c44be05da95bd3.tar drakx-26a985b6fc1ad4250c4ea21500c44be05da95bd3.tar.gz drakx-26a985b6fc1ad4250c4ea21500c44be05da95bd3.tar.bz2 drakx-26a985b6fc1ad4250c4ea21500c44be05da95bd3.tar.xz drakx-26a985b6fc1ad4250c4ea21500c44be05da95bd3.zip |
remove fdisk.log creation
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/restore-image.sh | 4 |
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 |