summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-09-25 19:06:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-09-25 19:06:34 +0000
commit8c1c92d93d05604552275f4c74b905bf569c3878 (patch)
tree45e89e13406520f1b930ffed69a4a55ccaad1f10
parent8f726ab8dc3523bcc6bb2b9368b468189c7f6593 (diff)
downloaddrakx-8c1c92d93d05604552275f4c74b905bf569c3878.tar
drakx-8c1c92d93d05604552275f4c74b905bf569c3878.tar.gz
drakx-8c1c92d93d05604552275f4c74b905bf569c3878.tar.bz2
drakx-8c1c92d93d05604552275f4c74b905bf569c3878.tar.xz
drakx-8c1c92d93d05604552275f4c74b905bf569c3878.zip
expand root fs (from Miura?)
-rwxr-xr-xrescue/restore-image.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index cc1ab6cab..8e5567d0a 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -132,10 +132,22 @@ function write_image()
fi
}
+function expand_fs()
+{
+ filesystem_type=$(dumpe2fs -h /dev/${root}1 2>/dev/null| grep "Filesystem OS type" | awk '{ print $4 }')
+ if [ $filesystem_type = "Linux" ]; then
+ dialog --backtitle "$BACKTITLE" --title "$TITLE" --infobox "Installing... Finishing Install..." 3 40
+ sfdisk -d /dev/$root | sed -e "/${root}1/ s/size=.*,/size= ,/" | sfdisk -f /dev/$root
+ e2fsck -fy /dev/${root}1
+ resize2fs /dev/${root}1
+ fi
+}
+
# installation steps
welcome
install_warning
write_image
+expand_fs
# all done!
_msgbox "\nInstallation process finished.\nPress ENTER to shutdown.\n "