Skip to content

Commit

Permalink
Bind makepkg dropin files into the chroot
Browse files Browse the repository at this point in the history
Fixes #1156
  • Loading branch information
Morganamilo committed Nov 15, 2024
1 parent 8e727b4 commit 25ab260
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ impl Chroot {
.arg(&self.makepkg_conf)
.arg(dir);

if Path::new(&format!("{}.d", self.makepkg_conf)).exists() {
cmd.arg("--bind-ro");
cmd.arg(format!("{}.d:/etc/makepkg.conf.d", self.makepkg_conf));
}

for file in &self.ro {
cmd.arg("--bind-ro");
cmd.arg(file);
Expand Down

0 comments on commit 25ab260

Please sign in to comment.