Check module loading and unloading, modprobe works on oglive now

fixes
Vadim vtroshchinskiy 2024-10-29 09:56:48 +01:00
parent 8396b25ebd
commit 38e457c35c
1 changed files with 2 additions and 4 deletions

View File

@ -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}")