|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Various comments
|
|
|
|
# live-build doesn't work if --parent-debian-distribution is unknown of
|
|
|
|
# debian-cd => we have to put a symlink so that it deals with kali like wheezy
|
|
|
|
|
|
|
|
if [ ! -e /usr/share/live/build/data/debian-cd/kali ]; then
|
|
|
|
echo "ERROR: Run this first"
|
|
|
|
echo "ln -sf wheezy /usr/share/live/build/data/debian-cd/kali"
|
|
|
|
fi
|
|
|
|
|
|
|
|
lb config noauto \
|
|
|
|
--distribution "kali" \
|
|
|
|
--debian-installer-distribution "kali" \
|
|
|
|
--archive-areas "main contrib non-free" \
|
|
|
|
--bootstrap cdebootstrap \
|
|
|
|
--bootstrap-keyring /usr/share/keyrings/kali-archive-keyring.gpg \
|
|
|
|
--keyring-packages kali-archive-keyring \
|
|
|
|
--volatile false \
|
|
|
|
--backports false \
|
|
|
|
--source false \
|
|
|
|
--mirror-bootstrap http://repo.kali.org/kali \
|
|
|
|
--mirror-debian-installer http://repo.kali.org/kali \
|
|
|
|
--mirror-chroot-security http://repo.kali.org/security \
|
|
|
|
--mirror-binary http://repo.kali.org/kali \
|
|
|
|
--mirror-binary-security http://repo.kali.org/security \
|
|
|
|
--iso-application "Kali Linux" \
|
|
|
|
--iso-publisher "Kali" \
|
|
|
|
--iso-volume "Kali Live" \
|
|
|
|
--debian-installer live \
|
|
|
|
--linux-packages linux-image \
|
|
|
|
--linux-flavours kali \
|
|
|
|
--bootappend-live "live-config.username=root" \
|
|
|
|
"$@"
|