Code

Allow - as mount point
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 10:07:05 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 10:07:05 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6655 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index 625798172f048c9b313ce721ed75aac203e111ee..1223d9e598e1ed1245dc188074ac4bfb1225d7d2 100644 (file)
@@ -391,7 +391,7 @@ class faiPartitionTableEntry extends plugin
         $message[]=sprintf(_("please enter a unique mount point for partition %s"),($key));
       }
 
-      if($part['FAIfsType']!="swap"){
+      if($part['FAIfsType']!="swap" && $part['FAImountPoint'] != "-"){
         if((empty($part['FAImountPoint']))||(!((preg_match("/^\/.*/",$part['FAImountPoint']))||(preg_match("/^swap$/",$part['FAImountPoint']))))){
           $message[]=sprintf(_("Please enter a valid mount point for partition %s." ),($key));
         }