script/build-with-container: remove default --volume arg from ctr build

On the original github pr #59841 user fayak kindly informed us that the
--volume option was not supported by docker build. Since this section
was a leftover from a previous way of constructing the builder image and
was no longer needed we simply removed it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 612a9d6808)
This commit is contained in:
John Mulligan 2025-02-19 13:20:36 -05:00
parent 915f6210d7
commit e56df19133

View File

@ -431,9 +431,6 @@ def build_container(ctx):
f"--volume={ctx.dnf_cache_dir}:/var/cache/dnf:Z",
"--build-arg=CLEAN_DNF=no",
]
if ctx.cli.homedir:
cwd = pathlib.Path(".").absolute()
cmd.append(f"--volume={cwd}:{ctx.cli.homedir}:Z")
cmd += ["-f", ctx.cli.containerfile, ctx.cli.containerdir]
with ctx.user_command():
_run(cmd, check=True, ctx=ctx)