Use dpkg --force-unsafe-io if available (Closes: #630043).

This commit is contained in:
Colin Watson 2011-06-11 13:31:08 +02:00 committed by Daniel Baumann
parent dc0775d7ae
commit 7b84bf9498
1 changed files with 11 additions and 0 deletions

View File

@ -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
;;