## Description: Check dpkg version in chroot ## Origin/Author: Neil Wilson ## Bug: LP:882760 --- a/scripts/build/lb_chroot_dpkg +++ b/scripts/build/lb_chroot_dpkg @@ -54,10 +54,14 @@ chmod 755 chroot/sbin/start-stop-daemon # Disable dpkg syncing + # if the chroot dpkg supports it + if Chroot chroot dpkg --force-help | grep -q unsafe-io + then cat > chroot/etc/dpkg/dpkg.cfg.d/live-build << EOF force-unsafe-io EOF + fi # Manual hacks for special packages