aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-13 18:12:08 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-10-13 18:12:08 +0000
commitc4dd619a55e20a3e375a363550a2f6c4b0de0b32 (patch)
tree2527bdce751c6ea56c6d68da1eafd000ef8c0e48
parent9688b22bc39f3bff45dc1b0965fc0ad9e4260752 (diff)
downloadpbuilder-c4dd619a55e20a3e375a363550a2f6c4b0de0b32.tar
pbuilder-c4dd619a55e20a3e375a363550a2f6c4b0de0b32.tar.gz
add hook type H: they run just after unpacking the chroot, for every target.
Closes: #800757
-rw-r--r--pbuilder-modules1
-rw-r--r--pbuilder.86
2 files changed, 7 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index de967b3..836083f 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -531,6 +531,7 @@ function extractbuildplace () {
log "W: Could not create compatibility symlink because /tmp/buildd exists and it is not a directory"
fi
fi
+ executehooks "H"
}
function echobacktime () {
diff --git a/pbuilder.8 b/pbuilder.8
index 9e2a5ed..0a915c1 100644
--- a/pbuilder.8
+++ b/pbuilder.8
@@ -326,6 +326,12 @@ in
.B "--create"
target.
+.B "H<digit><digit><whatever-else-you-want>"
+is executed just after unpacking the chroot, mounting proc and any bind mount
+specified in BINDMOUNTS. It's executed for every target that requires the
+unpacked chroot. It's useful if you want to dynamically change the chroot guts
+before anything starts using it.
+
\" End of hookdir description
.TP