summaryrefslogtreecommitdiff
path: root/auto/functions/patch-bootstrap
blob: 270bedd56b69f027e63845c22b24ad59e9ca2995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Hacks to execute after bootstrapping

current_script="$(basename "$0"|sed 's/^lb_//')"

if [ "$current_script" = "chroot" -a ! -e chroot/usr/local/sbin/update-initramfs ]; then
	echo "HACK: Disabling update-initramfs to prevent calling it several times during build."
	mkdir -p chroot/usr/local/sbin
	ln -fs /bin/true chroot/usr/local/sbin/update-initramfs
	
	. config/bootstrap
	if [ "$LB_ARCHITECTURE" = "amd64" -o "$LB_ARCHITECTURES" = "amd64" ] && [ "$LB_DISTRIBUTION" != "squeeze" ]; then
		echo "HACK: Enabling multiarch: amd64 + i386"
		chroot chroot dpkg --add-architecture i386
	fi
fi