[rawfs] Don't bother updating mount if this is a test (bogus) run
This improves things when running tests on FreeBSD, which doesn't have a /proc/mounts to read.
This commit is contained in:
parent
52cff12c38
commit
2e825167a3
@ -126,7 +126,7 @@ class RawFSItem:
|
|||||||
config["source"], device))
|
config["source"], device))
|
||||||
self.source = os.path.realpath(config["source"])
|
self.source = os.path.realpath(config["source"])
|
||||||
# If source is a mount point, look for the actual device mounted on it
|
# If source is a mount point, look for the actual device mounted on it
|
||||||
if os.path.ismount(self.source):
|
if os.path.ismount(self.source) and not libcalamares.job.configuration.get("bogus", False):
|
||||||
procmounts = open("/proc/mounts", "r")
|
procmounts = open("/proc/mounts", "r")
|
||||||
for line in procmounts:
|
for line in procmounts:
|
||||||
if self.source in line.split():
|
if self.source in line.split():
|
||||||
|
Loading…
Reference in New Issue
Block a user