Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #3557
Closed
Open
Created Jan 31, 2015 by SBosquin@SBosquinReporter

Plugin FAI - partition LVM

Salut,

Pour définir une partition LVM ou RAID, il faut mettre la valeur "-" dans le filesystem et sur le mountpoint (cf http://wiki.fai-project.org/wiki/Setup-storage#New_configuration_file_syntax) ce qui n'est actuellement pas possible.

--- class_faiPartition.inc.orig	2015-01-31 16:04:34.464539153 +0100
+++ class_faiPartition.inc	2015-01-31 16:08:58.694561453 +0100
@@ -220,7 +220,8 @@
         "ext4" => _("ext4"),
         "reiserfs" => _("reiser fs"),
         "xfs" => _("xfs"),
-        "btrfs" => _("btrfs"));
+        "btrfs" => _("btrfs"),
+	"-" => _("LVM/RAID"));

     $smarty->assign("partitionTypes", $types);
     $smarty->assign("partitionSizeTypes", $partitionSizeTypes);
@@ -428,7 +429,9 @@

     // check mount point
     if($this->FAIfsType != "swap"){
-      if(!preg_match("#^/#",$this->FAImountPoint)){
+      if($this->FAIfsType == "-") {
+	$this->FAImountPoint = "-";
+      } else if(!preg_match("#^/#",$this->FAImountPoint)){
         $msgs[] = msgPool::invalid(_("Mount point"));
       }
     }

(from redmine: issue id 3557, created on 2015-01-31, closed on 2015-02-25)

  • Changesets:
    • Revision ff229b6f by Côme Chilliet on 2015-02-04T16:16:06.000Z:
Fixes #3557 Fixed mountpoint and filesystem possible values
  • Revision 47b3d267 by Côme Chilliet on 2015-02-04T16:16:51.000Z:
Fixes #3557 Fixed mountpoint and filesystem possible values
  • Revision 38e82a7e by Côme Chilliet on 2015-02-20T16:59:33.000Z:
Fixes #3557 Correctly putting - when mountpoint is empty
  • Custom Fields:
    • Bug in version: 1.0.8.4
  • Uploads:
    • 0001-Fixes-3557-Fixed-mountpoint-and-filesystem-possible-.patch
    • 0002-Fixes-3557-Correctly-putting-when-mountpoint-is-empt.patch
Assignee
Assign to
Time tracking