--- isys/isys.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/isys/isys.py b/isys/isys.py index 449aded..4fd0b93 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -390,6 +390,16 @@ 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 = iutil.execWithCapture("modinfo", + ["-F", "filename", modName]).splitlines() + 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