Skip to content

Commit 25ab260

Browse files
committed
Bind makepkg dropin files into the chroot
Fixes #1156
1 parent 8e727b4 commit 25ab260

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/chroot.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ impl Chroot {
8787
.arg(&self.makepkg_conf)
8888
.arg(dir);
8989

90+
if Path::new(&format!("{}.d", self.makepkg_conf)).exists() {
91+
cmd.arg("--bind-ro");
92+
cmd.arg(format!("{}.d:/etc/makepkg.conf.d", self.makepkg_conf));
93+
}
94+
9095
for file in &self.ro {
9196
cmd.arg("--bind-ro");
9297
cmd.arg(file);

0 commit comments

Comments
 (0)