diff options
author | Chris Lumens <clumens@redhat.com> | 2007-07-16 15:55:32 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-07-16 15:55:32 +0000 |
commit | 9b8385653a1ae8ca9a4fbfaf43abb408158c197d (patch) | |
tree | cf5cfe1664401d64ee0d35ac126ebbfa2a5a8d6b /installclass.py | |
parent | 52aa724e83cfca78d33741a055a435a925ff5506 (diff) | |
download | anaconda-9b8385653a1ae8ca9a4fbfaf43abb408158c197d.tar.gz anaconda-9b8385653a1ae8ca9a4fbfaf43abb408158c197d.tar.xz anaconda-9b8385653a1ae8ca9a4fbfaf43abb408158c197d.zip |
Add the --only-use option to specify which disks should be used. This is the
opposite operation from ignoredisk --drives (#198526).
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/installclass.py b/installclass.py index c9e7157bb..73cdfaea3 100644 --- a/installclass.py +++ b/installclass.py @@ -4,7 +4,7 @@ # The interface to BaseInstallClass is *public* -- ISVs/OEMs can customize the # install by creating a new derived type of this class. # -# Copyright 1999-2006 Red Hat, Inc. +# Copyright 1999-2007 Red Hat, Inc. # # This software may be freely redistributed under the terms of the GNU # library public license. @@ -115,7 +115,13 @@ class BaseInstallClass: for drive in drives: if not drive in diskset.skippedDisks: diskset.skippedDisks.append(drive) - + + def setExclusiveDisks(self, id, drives): + diskset = id.diskset + for drive in drives: + if not drive in diskset.exclusiveDisks: + diskset.exclusiveDisks.append(drive) + def setClearParts(self, id, clear, drives = None, initAll = False): id.partitions.autoClearPartType = clear id.partitions.autoClearPartDrives = drives |