[PATCH] Enforcing matching rootfs type on LVs as well as for partitions (#504743)

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

 



We do two loops through, so we need this check twice.
---
 storage/partitioning.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index de3e3e5..5071ee0 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -138,6 +138,11 @@ def _scheduleLVs(anaconda, devs):
         if request.fstype is None:
             request.fstype = anaconda.id.storage.defaultFSType
 
+        # This is a little unfortunate but let the backend dictate the rootfstype
+        # so that things like live installs can do the right thing
+        if request.mountpoint == "/" and anaconda.backend.rootFsType != None:
+            request.fstype = anaconda.backend.rootFsType
+
         # FIXME: move this to a function and handle exceptions
         dev = anaconda.id.storage.newLV(vg=vg,
                                         fmt_type=request.fstype,
-- 
1.6.1

_______________________________________________
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