From c747c8d1ba24987acccf87ef9672391a516ddd4f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 12 May 2011 10:02:10 +0000 Subject: [PATCH] Added bootable option the partitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20815 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/Device/AddPartitionDialog.tpl | 4 ++++ .../systems/goto/Device/class_AddPartitionDialog.inc | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl b/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl index 8e077657e..1354c623e 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl +++ b/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl @@ -181,6 +181,10 @@ {t}Force to be primary partition{/t} + + {t}Bootable{/t} + + {t}Encrypt{/t} {if $p_fsType == "raid" || $p_fsType == "swap" || $p_fsType == "pv"} diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc index cef1e124c..810cab143 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc @@ -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 = ""; -- 2.30.2