Skip to content

Commit 7a14a4b

Browse files
committed
insert a reasonnable default PATH into the chroot
1 parent 2924cc6 commit 7a14a4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/lib/src/bootloader.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ pub(crate) fn install_via_bootupd(
9999
};
100100
let install_result = bootupctl
101101
.args(chroot_args)
102+
.env(
103+
"PATH",
104+
"/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
105+
)
102106
.args(["backend", "install", "--write-uuid"])
103107
.args(verbose)
104108
.args(bootupd_opts.iter().copied().flatten())

0 commit comments

Comments
 (0)