On Mon, 2009-03-16 at 16:22 +0100, Hans de Goede wrote: > Ignore loop and ram devices, we normally already skip these in > udev.py: enumerate_block_devices(), but we can still end up trying > to add them to the tree when they are slaves of other devices, this > happens for example with the livecd Ack. > --- > storage/devicetree.py | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/storage/devicetree.py b/storage/devicetree.py > index 765c857..fdcac7c 100644 > --- a/storage/devicetree.py > +++ b/storage/devicetree.py > @@ -816,6 +816,13 @@ class DeviceTree(object): > if disk.name == os.path.basename(os.path.dirname(sysfs_path)): > return True > > + # Ignore loop and ram devices, we normally already skip these in > + # udev.py: enumerate_block_devices(), but we can still end up trying > + # to add them to the tree when they are slaves of other devices, this > + # happens for example with the livecd > + if name.startswith("loop") or name.startswith("ram"): > + return True > + > # FIXME: check for virtual devices whose slaves are on the ignore list > > def addUdevDevice(self, info): _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list