summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-12 10:11:52 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-12 10:11:52 +0000
commit77d5b5d58705d88fd834a394c5f3a1be99ec620b (patch)
tree08db82afd08e66c5ac8db056d79af61a4c53dad3
parentb06420b2bc4ed3417d75daa6968684b7993ed8d7 (diff)
downloaddrakx-backup-do-not-use-77d5b5d58705d88fd834a394c5f3a1be99ec620b.tar
drakx-backup-do-not-use-77d5b5d58705d88fd834a394c5f3a1be99ec620b.tar.gz
drakx-backup-do-not-use-77d5b5d58705d88fd834a394c5f3a1be99ec620b.tar.bz2
drakx-backup-do-not-use-77d5b5d58705d88fd834a394c5f3a1be99ec620b.tar.xz
drakx-backup-do-not-use-77d5b5d58705d88fd834a394c5f3a1be99ec620b.zip
do not hardcode swap blocks
-rwxr-xr-xrescue/restore-image.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 5188c1d7e..425057113 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -168,7 +168,6 @@ function expand_fs()
total_blocks=$(sfdisk -s $disk)
#part_sectors=$(sfdisk -d $disk | perl -lne 'm|^'$main_part'\b.*,\s*size\s*=\s*(\d+)\b| and print($1), exit')
#part_blocks=$((part_sectors/2))
- SWAP_BLOCKS=150000
if [ -n "$SWAP_BLOCKS" ]; then
main_part_blocks=$((total_blocks-SWAP_BLOCKS))
main_part_sectors=$((main_part_blocks*2))