From 2e825167a336904619c115d1d41a29a91a67eed0 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 20 Jun 2024 19:34:01 +0200 Subject: [PATCH] [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. --- src/modules/rawfs/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rawfs/main.py b/src/modules/rawfs/main.py index a72ffe19d..736fc39cb 100644 --- a/src/modules/rawfs/main.py +++ b/src/modules/rawfs/main.py @@ -126,7 +126,7 @@ class RawFSItem: config["source"], device)) self.source = os.path.realpath(config["source"]) # 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") for line in procmounts: if self.source in line.split():