From 24c26e77878cf6fd9ff9bd3afc8006aea243d1fc Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Tue, 28 May 2024 18:18:45 +0100 Subject: [PATCH] stages/oscap.remediation: small import adjustment This is a small adjustment to how the `osbuild.util.mnt.mount` fuction is imported. While adding unit tests, the tests failed when trying to patch the function, this commit fixes the issue. --- stages/org.osbuild.oscap.remediation | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stages/org.osbuild.oscap.remediation b/stages/org.osbuild.oscap.remediation index 54ebd177..b3cd662f 100755 --- a/stages/org.osbuild.oscap.remediation +++ b/stages/org.osbuild.oscap.remediation @@ -4,7 +4,7 @@ import subprocess import sys import osbuild.api -from osbuild.util.mnt import mount +from osbuild.util import mnt DATA_DIR = "/root" XCCDF_RESULTS = "oscap_eval_xccdf_results.xml" @@ -15,7 +15,7 @@ def setup_env(tree): for source in ("/dev", "/proc"): target = os.path.join(tree, source.lstrip("/")) os.makedirs(target, exist_ok=True) - mount(source, target, ro=False) + mnt.mount(source, target, ro=False) os.symlink("/proc/self/fd", f"{tree}/dev/fd")