[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
extend the --ignoredisk option
- From: Joel Andres Granados <jgranado redhat com>
- To: Anaconda Devel <anaconda-devel-list redhat com>
- Subject: extend the --ignoredisk option
- Date: Mon, 14 Apr 2008 18:39:52 +0200
Hey list:
What do you guys think about including uuids in the --ignoredisk option? For now I'm thinking of a patch that ignores swap devices based on uuid, but I think it could be extended to whatever uses uuid in anaconda.
This could be a staging point for a new --ignoreswap option or for redefining the --ignoredisk into --ignorestorage (a more general way of defining what needs to be ignored). There are lots of pros and cons for each one. Would like to hear what everyone thinks :)
Comments appreciated.
--
Joel Andres Granados
Red Hat / Brno, Czech Republic
diff --git a/fsset.py b/fsset.py
index bd83806..eeb3e80 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1672,7 +1672,10 @@ MAILADDR root
notformatted = []
for entry in self.entries:
+ # The use can specify the device name or the Uuid in the ignoredisk ks line.
if (not entry.fsystem or not entry.fsystem.getName() == "swap" or
+ entry.device.device in partedUtils.DiskSet.skippedDisks or
+ entry.getUuid() in partedUtils.DiskSet.skippedDisks or
entry.isMounted()):
continue
if not entry.getFormat():
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]