summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-12 10:10:44 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-12 10:10:44 +0000
commitb06420b2bc4ed3417d75daa6968684b7993ed8d7 (patch)
treeb69f1ec67d6a1159fbbe60f6d1cefde521883c7b
parentffa44981c2fff6e0dc4a8a64c43d9352fa53eda4 (diff)
downloaddrakx-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar
drakx-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.gz
drakx-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.bz2
drakx-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.xz
drakx-b06420b2bc4ed3417d75daa6968684b7993ed8d7.zip
rename max_part variables as main_part
-rwxr-xr-xrescue/restore-image.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 77ef33331..5188c1d7e 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -170,15 +170,15 @@ function expand_fs()
#part_blocks=$((part_sectors/2))
SWAP_BLOCKS=150000
if [ -n "$SWAP_BLOCKS" ]; then
- max_part_blocks=$((total_blocks-SWAP_BLOCKS))
- max_part_sectors=$((max_part_blocks*2))
+ main_part_blocks=$((total_blocks-SWAP_BLOCKS))
+ main_part_sectors=$((main_part_blocks*2))
else
- max_part_sectors=
+ main_part_sectors=
fi
- sfdisk -d $disk | sed -e "\|$main_part| s/size=.*,/size= $max_part_sectors,/" | sfdisk -f $disk
+ sfdisk -d $disk | sed -e "\|$main_part| s/size=.*,/size= $main_part_sectors,/" | sfdisk -f $disk
e2fsck -fy $main_part
resize2fs $main_part
- parted $disk -- mkpartfs primary linux-swap ${max_part_sectors}s -1s yes
+ parted $disk -- mkpartfs primary linux-swap ${main_part_sectors}s -1s yes
mkswap -L swap $swap_part
fi
}