Move some buildd hooks to includes.chroot.

ubuntu/cosmic
Colin Watson 7 years ago
parent b77de06bfd
commit 2a9efb44a6

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

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

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

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

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

@ -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
Loading…
Cancel
Save