Code

Added bootable option the partitions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 May 2011 10:02:10 +0000 (10:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 May 2011 10:02:10 +0000 (10:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20815 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl
gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc

index 8e077657e210d4ab0b45d9e1fc972338cf43241b..1354c623e1bb2a3270124d66c796acda156cc664 100644 (file)
                         <td>{t}Force to be primary partition{/t}</td>
                         <td><input type="checkbox" name="p_forcePrimary" {if $p_forcePrimary_selected} checked {/if}></td>
                     </tr>
+                    <tr>
+                        <td>{t}Bootable{/t}</td>
+                        <td><input type="checkbox" name="p_bootable" {if $p_bootable_selected} checked {/if}></td>
+                    </tr>
                     <tr>
                         <td>{t}Encrypt{/t}</td>
                         {if $p_fsType == "raid" || $p_fsType == "swap" || $p_fsType == "pv"}
index cef1e124cade1f374ec6add4c88a9d83e8ab7a63..810cab143d6e36aac990c3af61bbbf0daab15df1 100644 (file)
@@ -49,6 +49,7 @@ class AddPartitionDialog
     // Partition properties
     public $p_size = 1000;
     public $p_format = FALSE;
+    public $p_bootable = FALSE;
     public $p_fsType = 'ext3';
     public $p_mountPoint = '';
     public $p_used_disk = array();
@@ -62,7 +63,7 @@ class AddPartitionDialog
 
     // Partitions attributes
     public $p_attributes = array("p_size", "p_fsType", "p_mountPoint", "p_forcePrimary", "p_encrypt", 
-            "p_size_options", "p_size_max_value", "p_used_disk", "p_format");
+            "p_size_options", "p_size_max_value", "p_used_disk", "p_format", "p_bootable");
 
     // Raid device attributes
     public $r_attributes = array("r_fsType", "r_mountPoint", "r_raidLevel", "r_partitions", 
@@ -145,7 +146,7 @@ class AddPartitionDialog
         switch($this->selected_type){
             case PARTITION: {
                     $attrs = $this->p_attributes;
-                    $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format");
+                    $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format", "p_bootable");
                     break;
                 }
             case RAID_DEVICE: {
@@ -199,7 +200,7 @@ class AddPartitionDialog
         switch($this->selected_type){
             case PARTITION: {
                     $attrs = $this->p_attributes;
-                    $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format");
+                    $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format", "p_bootable");
                     break;
                 }
             case RAID_DEVICE: {
@@ -374,7 +375,7 @@ class AddPartitionDialog
             }
             $grow = $this->p_size_options == 1;
             $format = $this->p_format == 1;
-            $boot = FALSE;
+            $boot = $this->p_bootable == 1;
             $primary = $this->p_forcePrimary;
             $fsType = $this->p_fsType;
             $fsOptions = "";