Return a list of the new modules, pass an lsmod dict before running modprobe and one after modprobe has run
(pre_mods, post_mods)
| 21 | |
| 22 | |
| 23 | def _new_mods(pre_mods, post_mods): |
| 24 | """ |
| 25 | Return a list of the new modules, pass an lsmod dict before running |
| 26 | modprobe and one after modprobe has run |
| 27 | """ |
| 28 | pre = set() |
| 29 | post = set() |
| 30 | for mod in pre_mods: |
| 31 | pre.add(mod["module"]) |
| 32 | for mod in post_mods: |
| 33 | post.add(mod["module"]) |
| 34 | return post - pre |
| 35 | |
| 36 | |
| 37 | def _rm_mods(pre_mods, post_mods): |