summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-18 01:21:31 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-18 01:21:31 -0500
commit37bd1cbbcc810189cb55fe30791b2ce7ab686012 (patch)
tree45b963509ac35373f28ea9656ba0d011193b883f /usr
parent72b14823ab3eb4910cdf6dda7cf0005ed37e7f9b (diff)
downloadpfsense-37bd1cbbcc810189cb55fe30791b2ce7ab686012.zip
pfsense-37bd1cbbcc810189cb55fe30791b2ce7ab686012.tar.gz
Misc comments
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/installer/installer.php19
1 files changed, 15 insertions, 4 deletions
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 .= "<tr>";
$custom_txt .= "<td><input size='8' id='mountpoint{$rownum}' name='mountpoint{$rownum}' value='{$mountpoint}'></td>";
- // 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 .= "<td><select onChange='javascript:onfstypeChange()' id='fstype{$rownum}' name='fstype{$rownum}'>";
$select_txt = "";
foreach($types as $desc => $type) {
@@ -928,6 +935,8 @@ function return_rowhelper_row($rownum, $mountpoint, $fstype, $disk, $size, $encp
}
$custom_txt .= "{$select_txt}</select>\n";
$custom_txt .= "</td>";
+
+ // Disk selection form field
$custom_txt .= "<td><select id='disk{$rownum}' name='disk{$rownum}'>\n";
$custom_disks = "";
foreach($disks as $dsk) {
@@ -941,8 +950,10 @@ function return_rowhelper_row($rownum, $mountpoint, $fstype, $disk, $size, $encp
}
$custom_txt .= "{$custom_disks}</select></td>\n";
+ // Slice size
$custom_txt .= "<td><input name='size{$rownum}' id='size{$rownum}' size='8' type='text' value='{$size}'></td>";
+ // Encryption password
$custom_txt .= "<td>";
$custom_txt .= "<input id='encpass{$rownum}' name='encpass{$rownum}' size='8' value='{$encpass}'>";
$custom_txt .= "</td>";
OpenPOWER on IntegriCloud