[PATCH] Ensure matching rootfs type to live type with autopart (#501876)

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

 



For autopartitioning with live images, we want to make the fstype of
/ match that of the live image as otherwise, the partitioning
will fail due to the mismatch
---
 storage/partitioning.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 7a33f0d..8e9ab3c 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -90,6 +90,10 @@ def _schedulePartitions(anaconda, disks):
 
         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
 
         dev = anaconda.id.storage.newPartition(fmt_type=request.fstype,
                                                size=request.size,
-- 
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