From 99a20c515768777989fa92c30a67b2548a702e7d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 18 Dec 2010 18:04:07 -0500 Subject: Do not allow /conf and inform user to use /cf when making a dedicated conf slice --- usr/local/www/installer/installer.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'usr/local/www/installer') 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 = "
/conf is not an allowed mount point and has been renamed.

"; + } + } 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() {

+ {$error_txt} @@ -833,6 +839,7 @@ EOF;
* Sizes are in megabytes.
* Encryption password field should only be used if a encrypted filesystem (.eli) was chosen +
* Mount points named /conf are not allowed. Use /cf if you want to make a configuration slice/mount. {$restored_layout_txt} -- cgit v1.1
Boot manager: {$bootmanager}