[PATCH] Honor fsprofile argument even for existing devices. (#747417)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/kickstart.py |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 35a3d01..229b67a 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -498,6 +498,7 @@ class LogVolData(commands.logvol.F15_LogVolData):
         format = getFormat(type,
                            mountpoint=self.mountpoint,
                            label=self.label,
+                           fsprofile=self.fsprofile,
                            mountopts=self.fsopts)
         if not format:
             raise KickstartValueError, formatErrorMsg(self.lineno, msg="The \"%s\" filesystem type is not supported." % type)
@@ -531,9 +532,6 @@ class LogVolData(commands.logvol.F15_LogVolData):
                                     maxsize=self.maxSizeMB,
                                     percent=self.percent)
 
-            if self.fsprofile and hasattr(request.format, "fsprofile"):
-                request.format.fsprofile = self.fsprofile
-
             storage.createDevice(request)
 
         if self.encrypted:
@@ -797,6 +795,7 @@ class PartitionData(commands.partition.F12_PartData):
         kwargs["format"] = getFormat(type,
                                      mountpoint=self.mountpoint,
                                      label=self.label,
+                                     fsprofile=self.fsprofile,
                                      mountopts=self.fsopts)
         if not kwargs["format"]:
             raise KickstartValueError, formatErrorMsg(self.lineno, msg="The \"%s\" filesystem type is not supported." % type)
@@ -859,9 +858,6 @@ class PartitionData(commands.partition.F12_PartData):
 
             request = storage.newPartition(**kwargs)
 
-            if self.fsprofile and hasattr(request.format, "fsprofile"):
-                request.format.fsprofile = self.fsprofile
-
             storage.createDevice(request)
 
         if self.encrypted:
@@ -962,6 +958,7 @@ class RaidData(commands.raid.F15_RaidData):
         # Now get a format to hold a lot of these extra values.
         kwargs["format"] = getFormat(type,
                                      label=self.label,
+                                     fsprofile=self.fsprofile,
                                      mountpoint=self.mountpoint,
                                      mountopts=self.fsopts)
         if not kwargs["format"]:
@@ -1002,9 +999,6 @@ class RaidData(commands.raid.F15_RaidData):
             except ValueError as e:
                 raise KickstartValueError, formatErrorMsg(self.lineno, msg=str(e))
 
-            if self.fsprofile and hasattr(request.format, "fsprofile"):
-                request.format.fsprofile = self.fsprofile
-
             storage.createDevice(request)
 
         if self.encrypted:
-- 
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux