summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 5d8c4c1b9..0aece56b1 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -302,7 +302,7 @@ EOF
function expand_fs()
{
- if [ ! -s /tmp/fdisk.log ]; then
+ if [ -z "$win32_part_dev" ]; then
root=${root%[0-9]}1
fi
filesystem_type=$(dumpe2fs -h /dev/${root} 2>/dev/null| grep "Filesystem OS type" | awk '{ print $4 }')
@@ -340,7 +340,7 @@ function expand_fs()
grub_dir="$mnt_dir/boot/grub"
if [ -d "$grub_dir" ]; then
echo "(hd0) $disk" > "$grub_dir/device.map"
- if [ -s /tmp/fdisk.log ]; then
+ if [ -n "$win32_part_dev" ]; then
grub_setup ${root} ${grub_dir}
fi
fi