[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Enforcing matching rootfs type on LVs as well as for partitions (#504743)
- From: Jeremy Katz <katzj redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] Enforcing matching rootfs type on LVs as well as for partitions (#504743)
- Date: Wed, 10 Jun 2009 16:19:11 -0400
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]