summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
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 /config/chroot_local-hooks
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 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/update-initramfs.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/config/chroot_local-hooks/update-initramfs.sh b/config/chroot_local-hooks/update-initramfs.sh
index 5179f77..4b1cb2e 100755
--- a/config/chroot_local-hooks/update-initramfs.sh
+++ b/config/chroot_local-hooks/update-initramfs.sh
@@ -1,15 +1,8 @@
#!/bin/sh
+# Disable the diversion that prevented update-initramfs from being run
+# This way we save time by not calling update-initramfs several times
+rm -f /usr/local/sbin/update-initramfs
-# This is a hook for live-helper(7) to rebuild the initramfs image.
-# To enable it, copy or symlink this hook into your config/chroot_local-hooks
-# directory.
-#
-# Note: You only want to use this hook if you have modified any initramfs-script
-# during the build and need to refresh the initrd.img for that purpose.
+# Create stubs that will be updated by chroot_hacks afterwards
+touch $(ls /boot/vmlinuz-* | sed 's@^.*/vmlinuz-@/var/lib/initramfs-tools/@g')
-for KERNEL in /boot/vmlinuz-*
-do
- VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
-
- update-initramfs -k ${VERSION} -t -u
-done