From 713d006369f398fda15054d5b715b257bea9afcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Tue, 14 Aug 2012 03:55:35 -0400 Subject: [PATCH] Kali kernel do need an initrd, it was just not generated due to lack of initramfs-tools Temporarily work-around the missing package by installing it during bootstrap phase. Later we will add it to the package dependency. --- auto/config | 5 +++++ config/hooks/workaround-live-build-limitation.chroot | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auto/config b/auto/config index fa651c3..0394c36 100755 --- a/auto/config +++ b/auto/config @@ -1,5 +1,10 @@ #!/bin/sh +# --bootstrap-include "initramfs-tools" => work around lack of +# dependency on linux-image-3.2.6-kali + +export LB_BOOTSTRAP_INCLUDE=initramfs-tools + lb config noauto \ --distribution "kali" \ --parent-distribution "wheezy" \ diff --git a/config/hooks/workaround-live-build-limitation.chroot b/config/hooks/workaround-live-build-limitation.chroot index f1a60fe..cd98fcb 100755 --- a/config/hooks/workaround-live-build-limitation.chroot +++ b/config/hooks/workaround-live-build-limitation.chroot @@ -1,10 +1,5 @@ #!/bin/sh -# /usr/lib/live/build/lb_binary_linux-image expects /boot/initrd.img-* to -# expand to something but the kali image has no initrd - -touch /boot/initrd.img-fake - # somehow we need to replace wheezy with kali sed -i -e 's/wheezy/kali/g' /etc/apt/sources.list