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

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



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


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