Update live-build's config for version 3.x in wheezy

debian-cd
Raphaël Hertzog 13 years ago
parent 69b2f90c08
commit 4ca36c8edc

@ -4,6 +4,6 @@
# /usr/share/live/build/scripts/build/lb_binary_debian-installer fails because
# the version is empty (nothing known in
# /usr/share/live/build/functions/releases.sh)
export RELEASE_kali="6.0"
export RELEASE_kali="7.0"
lb build noauto "$@" 2>&1 | tee binary.log

@ -1,27 +1,27 @@
#!/bin/sh
# Various comments
# live-build doesn't work if --debian-installer-distribution is unknown of
# debian-cd => we have to override it as "squeeze" and install a symlink on the
# server
if [ ! -e /usr/share/live/build/data/debian-cd/kali ]; then
echo "ERROR: Run this first"
echo "ln -sf squeeze /usr/share/live/build/data/debian-cd/kali"
fi
lb config noauto \
--packages-lists "kali" \
--distribution "kali" \
--parent-distribution "wheezy" \
--debian-installer-distribution "kali" \
--parent-debian-installer-distribution "wheezy" \
--archive-areas "main contrib non-free" \
--parent-archive-areas "main contrib non-free" \
--bootstrap cdebootstrap \
--bootstrap-config squeeze \
--bootstrap-keyring /usr/share/keyrings/kali-archive-keyring.gpg \
--keyring-packages kali-archive-keyring \
--volatile false \
--backports false \
--source false \
--parent-mirror-bootstrap http://repo.kali.org/kali \
--mirror-bootstrap http://repo.kali.org/kali \
--parent-mirror-debian-installer http://repo.kali.org/kali \
--mirror-debian-installer http://repo.kali.org/kali \
--parent-mirror-chroot-security http://repo.kali.org/security \
--mirror-chroot-security http://repo.kali.org/security \
--parent-mirror-binary http://repo.kali.org/kali \
--mirror-binary http://repo.kali.org/kali \
--parent-mirror-binary-security http://repo.kali.org/security \
--mirror-binary-security http://repo.kali.org/security \
--iso-application "Kali Linux" \
--iso-publisher "Kali" \
@ -29,5 +29,4 @@ lb config noauto \
--debian-installer live \
--linux-packages linux-image \
--linux-flavours kali \
--username root \
"$@"

@ -11,13 +11,13 @@ for KALI_ARCH in $KALI_ARCHES; do
lb clean --purge >prepare.log 2>&1
lb config --architecture $KALI_ARCH >>prepare.log 2>&1
lb build >/dev/null
if [ ! -e binary.iso ]; then
if [ ! -e binary.hybrid.iso ]; then
echo "Build of $KALI_ARCH live image failed" >&2
echo "Last 50 lines of the log:" >&2
tail -n 50 binary.log >&2
exit 1
fi
mv binary.iso images/kali-$KALI_VERSION-$KALI_ARCH.iso
mv binary.hybrid.iso images/kali-$KALI_VERSION-$KALI_ARCH.iso
mv binary.log images/kali-$KALI_VERSION-$KALI_ARCH.log
done

@ -0,0 +1,10 @@
#!/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

@ -1,7 +1,6 @@
# kali packages
#include <gnome>
#include <rescue>
gnome-core
kali-archive-keyring
kali-menu

@ -0,0 +1,43 @@
#! Packages Priority standard
apt-listchanges
at
bash-completion
bc
bind9-host
bsd-mailx
bzip2
dc
dnsutils
exim4
exim4-base
exim4-daemon-light
file
ftp
host
less
locales
lsof
m4
mime-support
mlocate
multiarch-support
mutt
ncurses-term
nfs-common
openssh-client
patch
pciutils
perl
perl-modules
portmap
procmail
python
reportbug
rpcbind
telnet
texinfo
time
ucf
w3m
wamerican
whois
Loading…
Cancel
Save