summaryrefslogtreecommitdiff
path: root/build-recipe-debootstrap
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2017-03-13 14:27:31 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2017-03-13 15:49:28 +0100
commit853644a189abd5e24999b3d288dff79f44b40555 (patch)
tree78c6e0f039f74f162bb712e97a8d650c8bb0254c /build-recipe-debootstrap
parent5be3c81511bc84afb437184c1498b6ef1a96793f (diff)
debootstrap: Enable dpkg unsafe io usage
To speed up dpkg a little bit one can turn on usage of unsafe-io to lower the amount of sync() like calls it does. Enable this early in the debootstrap run. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'build-recipe-debootstrap')
-rw-r--r--build-recipe-debootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/build-recipe-debootstrap b/build-recipe-debootstrap
index c1ef4ad..e1c3200 100644
--- a/build-recipe-debootstrap
+++ b/build-recipe-debootstrap
@@ -45,6 +45,9 @@ recipe_build_debootstrap() {
done
FULL_PKG_LIST="${FULL_PKG_LIST#,}"
rm -rf "$BUILD_ROOT/$myroot"
+ mkdir -p "$BUILD_ROOT/$myroot/etc/dpkg/dpkg.cfg.d"
+ echo force-unsafe-io > "$BUILD_ROOT/$myroot/etc/dpkg/dpkg.cfg.d/force-unsafe-io"
+
set -- chroot $BUILD_ROOT debootstrap --keep-debootstrap-dir --no-check-gpg --variant=buildd --arch="${arch}" --include="$FULL_PKG_LIST" "$dist" "$myroot" file:///.build.binaries
echo "running debootstrap..."
if ! "$@" || ! chroot $BUILD_ROOT dpkg --configure -a; then