[rhinstaller/anaconda/pulls/60 master] Enforce sane disk selections.
vpodzime
installerbot-noreply at redhat.com
Wed Apr 1 09:41:06 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)
This seems like something that could go to blivet (DeviceTree, I guess?)
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/60#discussion_r27555859
More information about the anaconda-patches
mailing list