diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-12 10:10:44 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-12 10:10:44 +0000 |
commit | b06420b2bc4ed3417d75daa6968684b7993ed8d7 (patch) | |
tree | b69f1ec67d6a1159fbbe60f6d1cefde521883c7b | |
parent | ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4 (diff) | |
download | drakx-backup-do-not-use-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar drakx-backup-do-not-use-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.gz drakx-backup-do-not-use-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.bz2 drakx-backup-do-not-use-b06420b2bc4ed3417d75daa6968684b7993ed8d7.tar.xz drakx-backup-do-not-use-b06420b2bc4ed3417d75daa6968684b7993ed8d7.zip |
rename max_part variables as main_part
-rwxr-xr-x | rescue/restore-image.sh | 10 |
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 } |