--- isys/isys.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/isys/isys.py b/isys/isys.py index 44f9d3d..1d6e88d 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -390,6 +390,15 @@ def ext2HasJournal(device): hasjournal = _isys.e2hasjournal(device); return hasjournal +def modulesWithPaths(): + mods = [] + for modline in open("/proc/modules", "r"): + modName = modline.split(" ", 1)[0] + modInfo = os.popen("modinfo -F filename '%s'" % (modName,)).readlines() + modPaths = [ line.strip() for line in modInfo if line!="" ] + mods.extend(modPaths) + return mods + def driveUsesModule(device, modules): """Returns true if a drive is using a prticular module. Only works for SCSI devices right now.""" -- 1.6.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list