From 77d5b5d58705d88fd834a394c5f3a1be99ec620b Mon Sep 17 00:00:00 2001
From: Olivier Blin <oblin@mandriva.com>
Date: Wed, 12 Nov 2008 10:11:52 +0000
Subject: do not hardcode swap blocks

---
 rescue/restore-image.sh | 1 -
 1 file changed, 1 deletion(-)

(limited to 'rescue')

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))
-- 
cgit v1.2.1