Skip to content

Commit

Permalink
Remove folder only deletes from current filesystem (#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Oct 26, 2023
1 parent 7361d39 commit b04efe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WORKDIR /usr/src
RUN \
set -x \
&& apk add --no-cache \
coreutils \
eudev \
eudev-libs \
git \
Expand Down
2 changes: 1 addition & 1 deletion supervisor/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def remove_folder(
proc = await asyncio.create_subprocess_exec(
"bash",
"-c",
f"rm -rf {del_folder}",
f"rm -rf --one-file-system {del_folder}",
stdout=asyncio.subprocess.DEVNULL,
env=clean_env(),
)
Expand Down

0 comments on commit b04efe4

Please sign in to comment.