extend the --ignoredisk option

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

 



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():
_______________________________________________
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