diff options
Diffstat (limited to 'scripts/build/lb_chroot_dpkg')
-rwxr-xr-x | scripts/build/lb_chroot_dpkg | 11 |
1 files changed, 11 insertions, 0 deletions
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 ;; |