From 37bd1cbbcc810189cb55fe30791b2ce7ab686012 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 18 Dec 2010 01:21:31 -0500 Subject: Misc comments --- usr/local/www/installer/installer.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'usr') diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php index c89f0de..b9e673d 100644 --- a/usr/local/www/installer/installer.php +++ b/usr/local/www/installer/installer.php @@ -894,12 +894,15 @@ EOF; function return_rowhelper_row($rownum, $mountpoint, $fstype, $disk, $size, $encpass) { global $g, $select_txt, $custom_disks; - // Slice #2 - SWAP + $release = php_uname("r"); + $release = trim($release[0]); + // Mount point $disks = installer_find_all_disks(); $custom_txt .= ""; $custom_txt .= ""; - // File system type + + // Filesystem type array $types = array( 'UFS' => 'UFS', 'UFS+S' => 'UFS + Softupdates', @@ -907,16 +910,20 @@ function return_rowhelper_row($rownum, $mountpoint, $fstype, $disk, $size, $encp 'UFS+S.eli' => 'Encrypted UFS + Softupdates', 'SWAP' => 'SWAP' ); - $release = php_uname("r"); - $release = $release[0]; + + // UFS + Journaling was introduced in 9.0 if($release == "9") { $types['UFS+J'] = "UFS + Journaling"; $types['UFS+J.eli'] = "Encrypted UFS + Journaling"; } + + // Add ZFS Boot loader if it exists if(file_exists("/boot/gptzfsboot")) { $types['ZFS'] = "Zetabyte Filesystem"; $types['ZFS.eli'] = "Encrypted Zetabyte Filesystem"; } + + // fstype form field $custom_txt .= "\n"; $custom_txt .= ""; + + // Disk selection form field $custom_txt .= "\n"; + // Slice size $custom_txt .= ""; + // Encryption password $custom_txt .= ""; $custom_txt .= ""; $custom_txt .= ""; -- cgit v1.1