summaryrefslogtreecommitdiff
path: root/auto/functions/patch-bootstrap
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-10-11 22:31:26 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-10-11 22:31:26 +0200
commit80cacfe57ab1a7e2be7af295ece081ca6fff94c6 (patch)
tree53d554abc70906b7dcbedfc79d379a4ea5ead99a /auto/functions/patch-bootstrap
parent82b8b80cb2a042e84c4439d8d79d12d3336e4aea (diff)
downloadkanotix-80cacfe57ab1a7e2be7af295ece081ca6fff94c6.zip
kanotix-80cacfe57ab1a7e2be7af295ece081ca6fff94c6.tar.gz
various smaller changes
* removed wine-ppa-oneiric * added hack to generate initrd only once * added multiarch support for wheezy amd64 * updated packagelists for multiarch (wine, skype) * removed obsolete packagelists includes
Diffstat (limited to 'auto/functions/patch-bootstrap')
-rw-r--r--auto/functions/patch-bootstrap17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto/functions/patch-bootstrap b/auto/functions/patch-bootstrap
new file mode 100644
index 0000000..edf0203
--- /dev/null
+++ b/auto/functions/patch-bootstrap
@@ -0,0 +1,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" = "wheezy" ]; then
+ echo "HACK: Enabling multiarch: amd64 + i386"
+ chroot chroot dpkg --add-architecture i386
+ fi
+fi
+