Skip to content

Commit a872da1

Browse files
committed
base: Add /sbin to unshare invocations PATH
1 parent b43a9ce commit a872da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xbstrap/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ def run_in_container(rootfs, args, extra_script="", extra_script_post=""):
23612361

23622362
environ = os.environ.copy()
23632363
_util.build_environ_paths(
2364-
environ, "PATH", prepend=[os.path.join(_util.find_home(), "bin")]
2364+
environ, "PATH", prepend=[os.path.join(_util.find_home(), "bin"), "/sbin"]
23652365
)
23662366

23672367
script = f"""
@@ -2455,7 +2455,7 @@ def run_in_container(rootfs, args, extra_script="", extra_script_post=""):
24552455
environ = os.environ.copy()
24562456
environ["DEBOOTSTRAP_DIR"] = os.path.join(_util.find_home(), "debootstrap")
24572457
_util.build_environ_paths(
2458-
environ, "PATH", prepend=[os.path.join(_util.find_home(), "bin")]
2458+
environ, "PATH", prepend=[os.path.join(_util.find_home(), "bin"), "/sbin"]
24592459
)
24602460

24612461
script = f"""

0 commit comments

Comments
 (0)