On Tue, Apr 24, 2012 at 03:57:32PM -0700, Jesse Keating wrote: > This is a bit heavy handed, but is safer than a kernel change at this > point. > > Resolves: rhbz#729910 > --- > storage/dasd.py | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/storage/dasd.py b/storage/dasd.py > index 2b95b19..3bec53e 100644 > --- a/storage/dasd.py > +++ b/storage/dasd.py > @@ -78,6 +78,13 @@ class DASD: > statusfile = "/sys/block/%s/device/status" % (device,) > if not os.path.isfile(statusfile): > continue > + else: > + # This works around what I believe to be a kernel bug and > + # forces udev to notice all the information about these > + # devices (#729910) > + f = open("/sys/block/%s/uevent" % (device,), 'w') > + f.write("change") > + f.close() > > f = open(statusfile, "r") > status = f.read().strip() > -- > 1.7.7.6 We have access to status wrapped in a check so we should probably do the same with uevent. I'd also drop the else: and just move the block out since getting past the continue implies else. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Attachment:
pgpX8I6zEmKAO.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list