summaryrefslogtreecommitdiffstats
path: root/usr/local/www/installer
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-18 18:04:07 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-18 18:04:07 -0500
commit99a20c515768777989fa92c30a67b2548a702e7d (patch)
treec453af3a9fa83221a1f173430244047c3bd20191 /usr/local/www/installer
parenta16d38c977793a77dc1527ad75b2342e0d719393 (diff)
downloadpfsense-99a20c515768777989fa92c30a67b2548a702e7d.zip
pfsense-99a20c515768777989fa92c30a67b2548a702e7d.tar.gz
Do not allow /conf and inform user to use /cf when making a dedicated conf slice
Diffstat (limited to 'usr/local/www/installer')
-rw-r--r--usr/local/www/installer/installer.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php
index bbbfdac..151095e 100644
--- a/usr/local/www/installer/installer.php
+++ b/usr/local/www/installer/installer.php
@@ -445,10 +445,15 @@ function verify_before_install() {
if(!$_REQUEST['fstype' . $x])
continue;
$tmparray = array();
- if($_REQUEST['fstype'] <> "SWAP")
+ if($_REQUEST['fstype'] <> "SWAP") {
$tmparray['mountpoint'] = $_REQUEST['mountpoint' . $x];
- else
+ if($tmparray['mountpoint'] == "/conf") {
+ $tmparray['mountpoint'] = "/confa";
+ $error_txt = "<center><font color='red'>/conf is not an allowed mount point and has been renamed.</font></center><br/>";
+ }
+ } else {
$tmparray['mountpoint'] = "none";
+ }
$tmparray['disk'] = $_REQUEST['disk' . $x];
$tmparray['fstype'] = $_REQUEST['fstype' . $x];
$tmparray['size'] = $_REQUEST['size' . $x];
@@ -483,6 +488,7 @@ function verify_before_install() {
</tr>
</table>
<p/>
+ {$error_txt}
<table width='100%'>
<tr><td colspan='5' align="center"><b>Boot manager: {$bootmanager}</td></tr>
<tr><td colspan='5'><hr></td></tr>
@@ -833,6 +839,7 @@ EOF;
</span>
<br/>* Sizes are in megabytes.
<br/>* Encryption password field should only be used if a encrypted filesystem (.eli) was chosen
+ <br/>* Mount points named /conf are not allowed. Use /cf if you want to make a configuration slice/mount.
{$restored_layout_txt}
</span>
</strong>
OpenPOWER on IntegriCloud