[rhinstaller/anaconda/pulls/60 master] Enforce sane disk selections.
mulkieran
installerbot-noreply at redhat.com
Wed Apr 1 14:11:44 UTC 2015
> @@ -92,3 +92,33 @@ def applyDiskSelection(storage, data, use_names):
>
> data.ignoredisk.onlyuse = onlyuse
> data.clearpart.drives = use_names[:]
> +
> +def getRelatedDisks(storage, disk):
> + """ Return a list of disks related to disk by way of container devices. """
> + return set(d for dep in storage.deviceDeps(disk) for d in dep.disks)
It does feel like blivet is the place for it.
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/60#discussion_r27571937
More information about the anaconda-patches
mailing list