summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba8a27a)
raw | patch | inline | side by side (parent: ba8a27a)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 10:22:40 +0000 (10:22 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 10:22:40 +0000 (10:22 +0000) |
- Fix wrong mountpoint display and wrong partition type,
by setting mountpoint explicit to - (as required for FAI)
- Fix undo of preserve Flag by setting FAIpartitionFlags to
" " explicit
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13742 594d385d-05f5-0310-b6e9-bd551577e9d8
by setting mountpoint explicit to - (as required for FAI)
- Fix undo of preserve Flag by setting FAIpartitionFlags to
" " explicit
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13742 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc b/trunk/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc
index 0efc24c103d918707367f568079cf81cc2846e8c..f583fec839a3498fa7bc35b92666cd43b37a3734 100644 (file)
"changeState('FAIfsOptions_".$key."') ; \"";
if($this->acl_is_writeable("FAIpartitionFlags")){
- if($part['FAIpartitionFlags']!=false){
+ if($part['FAIpartitionFlags']=="preserve"){
$str .= "\n<td><input type='checkbox' name='FAIpartitionFlags_".$key."' value='preserve' checked ".$changeState." ".$disableALL."></td>";
}else{
$str .= "\n<td><input type='checkbox' name='FAIpartitionFlags_".$key."' value='preserve' ".$changeState." ".$disableALL."></td>";
}
}else{
- if($part['FAIpartitionFlags']!=false){
+ if($part['FAIpartitionFlags']=="preserve"){
$str .= "<td>"._("False")."</td>";
}else{
$str .= "<td>"._("True")."</td>";
$this->partitions[$key][$attrs] = false;
}
}
+
+ if(!$this->partitions[$key]['FAIpartitionFlags']){
+ $this->partitions[$key]['FAIpartitionFlags'] = " ";
+ }
}
/* Adapt ext3 to have -j option */
/* Skip all checks, if preserve is set */
if($part['FAIpartitionFlags'] == "preserve"){
+ $this->partitions[$key]['FAImountPoint'] = "-";
$this->partitions[$key]['FAIfsType'] = "preserve";
$this->partitions[$key]['FAIpartitionSize'] = "preserve";
continue;