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