Move some buildd hooks to includes.chroot.

This commit is contained in:
Colin Watson 2018-04-30 09:57:12 +01:00
parent b77de06bfd
commit 2a9efb44a6
6 changed files with 6 additions and 26 deletions

View File

@ -1,14 +0,0 @@
#! /bin/sh
set -e
# Configure APT.
cat >/etc/apt/apt.conf.d/99buildd <<EOF
DPkg::Options {"--force-unsafe-io";};
DPkg::Use-Pty "false";
EOF
cat >/etc/apt/preferences.d/backports <<EOF
Package: *
Pin: release a=*-backports
Pin-Priority: 500
EOF

View File

@ -1,5 +0,0 @@
#! /bin/sh
set -e
# Install a dummy fstab.
echo /dev/root / ext2 noatime,errors=remount-ro 0 1 >/etc/fstab

View File

@ -0,0 +1,2 @@
DPkg::Options {"--force-unsafe-io";};
DPkg::Use-Pty "false";

View File

@ -0,0 +1,3 @@
Package: *
Pin: release a=*-backports
Pin-Priority: 500

View File

@ -0,0 +1 @@
/dev/root / ext2 noatime,errors=remount-ro 0 1

View File

@ -1,8 +1,3 @@
#! /bin/sh
set -e
# Configure policy-rc.d.
cat >/usr/local/sbin/policy-rc.d <<'EOF'
#!/bin/sh
# policy-rc.d script for chroots.
@ -16,5 +11,3 @@ while true; do
*) echo "Not running services in chroot."; exit 101 ;;
esac
done
EOF
chmod 755 /usr/local/sbin/policy-rc.d