summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-09 16:08:25 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-09 16:08:25 +0000
commit1246d7e3515329a5fcb2ba7a9a59b074e89fa697 (patch)
treebef30c4923dc5c68aef75ac57344e76933d79a57
parent05b17aed305e53e44ad80ee951812b31fedf4099 (diff)
downloaddrakx-1246d7e3515329a5fcb2ba7a9a59b074e89fa697.tar
drakx-1246d7e3515329a5fcb2ba7a9a59b074e89fa697.tar.gz
drakx-1246d7e3515329a5fcb2ba7a9a59b074e89fa697.tar.bz2
drakx-1246d7e3515329a5fcb2ba7a9a59b074e89fa697.tar.xz
drakx-1246d7e3515329a5fcb2ba7a9a59b074e89fa697.zip
re-read partition table after writing image (from Paulo Ricardo Zanoni)
-rwxr-xr-xrescue/restore-image.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 4999e2695..3750c8215 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -293,6 +293,9 @@ function write_image()
_msgbox "\nError writing image!\n"
sleep 24h
fi
+
+ # Now re-read the partition table because 'dd' might have changed it
+ sfdisk -R /dev/${root}
}
function grub_setup()