Check module loading and unloading, modprobe works on oglive now
parent
8396b25ebd
commit
38e457c35c
|
@ -404,13 +404,11 @@ class OpengnsysGitLibrary:
|
|||
|
||||
def _rmmod(self, module):
|
||||
self.logger.debug("Trying to unload module {module}...")
|
||||
# TODO: modprobe not working on oglive
|
||||
subprocess.run(["/usr/sbin/rmmod", module], check=False)
|
||||
subprocess.run(["/usr/sbin/rmmod", module], check=True)
|
||||
|
||||
def _modprobe(self, module):
|
||||
self.logger.debug("Trying to load module {module}...")
|
||||
# TODO: modprobe not working on oglive
|
||||
subprocess.run(["/usr/sbin/modprobe", module], check=False)
|
||||
subprocess.run(["/usr/sbin/modprobe", module], check=True)
|
||||
|
||||
def _mount(self, device, mountpoint, filesystem = None):
|
||||
self.logger.debug(f"Mounting {device} at {mountpoint}")
|
||||
|
|
Loading…
Reference in New Issue