Add extra mounts update

windows-boot-fixes
Vadim vtroshchinskiy 2024-12-16 13:05:25 +01:00
parent 3b19b2014a
commit ad021122a9
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import subprocess
import os
import json
import blkid
import time
from ntfs import *
@ -112,6 +113,7 @@ class FilesystemLibrary:
str or None: The device corresponding to the mount point if found,
otherwise None.
"""
self.update_mounts()
self.logger.debug("Finding device corresponding to mount point %s", mountpoint)
if mountpoint in self.mounts:
return self.mounts[mountpoint]['device']