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.
This commit is contained in:
parent
a1beb4d295
commit
24c26e7787
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue