Skip NTFS code on non-Windows

windows-boot-fixes
Vadim vtroshchinskiy 2024-12-04 13:46:31 +01:00
parent 10e226fe85
commit a7f5a87539
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class FilesystemLibrary:
def _rmmod(self, module):
self.logger.debug("Trying to unload module {module}...")
subprocess.run(["/usr/sbin/rmmod", module], check=True)
subprocess.run(["/usr/sbin/rmmod", module], check=False)
def _modprobe(self, module):
self.logger.debug("Trying to load module {module}...")

View File

@ -1249,7 +1249,7 @@ class OpengnsysGitLibrary:
#self.logger.debug("Commit done, will unmount now")
#self._umount_device(device)
if self.fs.filesystem_type(mountpoint = path) == "ntfs":
self.fs.unload_ntfs()