Use dpkg --force-unsafe-io if available (Closes: #630043).
This commit is contained in:
parent
dc0775d7ae
commit
7b84bf9498
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue