From 7b84bf949854474368c9690e56d472fc9ba94907 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 11 Jun 2011 13:31:08 +0200 Subject: Use dpkg --force-unsafe-io if available (Closes: #630043). --- scripts/build/lb_chroot_dpkg | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'scripts/build') diff --git a/scripts/build/lb_chroot_dpkg b/scripts/build/lb_chroot_dpkg index 64c808526..819dbdae3 100755 --- a/scripts/build/lb_chroot_dpkg +++ b/scripts/build/lb_chroot_dpkg @@ -53,6 +53,14 @@ EOF chmod 755 chroot/sbin/start-stop-daemon + # Disable dpkg syncing + if echo 'dpkg --compare-versions "$(dpkg-query -W --showformat="\${Version}" dpkg)" ge 1.15.8.6' | Chroot chroot sh + then + cat > chroot/etc/dpkg/dpkg.cfg.d/live-build << EOF +force-unsafe-io +EOF + fi + # Manual hacks for special packages # samhain @@ -95,6 +103,9 @@ EOF mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon fi + # Remove dpkg sync configuration + rm -f chroot/etc/dpkg/dpkg.cfg.d/live-build + # Removing stage file rm -f .stage/chroot_dpkg ;; -- cgit v1.2.3