From 1ddd4ba39051ed20fd0d82800ecfe81b3d02ff1b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 18 Dec 2010 16:20:17 -0500 Subject: USe memory *2 for default swap space --- usr/local/www/installer/installer.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'usr') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index d9ee154..e0c0ba9 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -726,19 +726,19 @@ EOF;
- - - - "; $custom_txt .= "
- Mount point + + Mount - Filesysyem type + Filesysyem + Disk + Size + Encryption password @@ -750,13 +750,15 @@ EOF; EOF; // Output disk editor rows + $memory = get_memory(); + $swap_size = $memory[0] * 2; $first_disk = trim(installer_find_first_disk()); $disk_info = pcsysinstall_get_disk_info($first_disk); $size = $disk_info['size']; - $first_disk_size = $size - 256; + $first_disk_size = $size - $swap_size; echo "\n\n\n\n"; $custom_txt .= return_rowhelper_row("0", "/", "UFS", $first_disk, "{$first_disk_size}", ""); - $custom_txt .= return_rowhelper_row("1", "none", "SWAP", $first_disk, "256", ""); + $custom_txt .= return_rowhelper_row("1", "none", "SWAP", $first_disk, "$swap_size", ""); $custom_txt .= "
"; -- cgit v1.1