Update for live-build version 4.0.3-1kali2

- update compare version in build_all.sh
- replace image name with live-image-ARCH.* in build_all.sh
- change variable ARCHITECTURES in ARCHITECTURE in package lists as name has
  been changed in live-build
debian-cd
Sophie Brun 11 years ago
parent 2a299f7e44
commit 8b9e8f814d

@ -10,11 +10,11 @@ HOST_ARCH="$(dpkg --print-architecture)"
case "$HOST_ARCH" in case "$HOST_ARCH" in
i386|amd64) i386|amd64)
KALI_ARCHES="amd64 i386" KALI_ARCHES="amd64 i386"
IMAGE_NAME="binary.hybrid.iso" IMAGE_TEMPLATE="live-image-ARCH.hybrid.iso"
;; ;;
armel|armhf) armel|armhf)
KALI_ARCHES="$HOST_ARCH" KALI_ARCHES="$HOST_ARCH"
IMAGE_NAME="binary.img" IMAGE_TEMPLATE="live-image-ARCH.img"
;; ;;
*) *)
echo "ERROR: $HOST_ARCH build is not supported" echo "ERROR: $HOST_ARCH build is not supported"
@ -71,8 +71,8 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Or we ensure we have proper version installed # Or we ensure we have proper version installed
ver_live_build=$(dpkg-query -f '${Version}' -W live-build) ver_live_build=$(dpkg-query -f '${Version}' -W live-build)
if dpkg --compare-versions "$ver_live_build" lt 3.0.5-1kali7; then if dpkg --compare-versions "$ver_live_build" lt 4.0.3-1kali2; then
echo "You need live-build (>= 3.0.5-1kali7), you have $ver_live_build" >&2 echo "You need live-build (>= 4.0.3-1kali2), you have $ver_live_build" >&2
exit 1 exit 1
fi fi
@ -80,6 +80,7 @@ cd $(dirname $0)
mkdir -p $TARGET_DIR mkdir -p $TARGET_DIR
for KALI_ARCH in $KALI_ARCHES; do for KALI_ARCH in $KALI_ARCHES; do
IMAGE_NAME=$(echo $IMAGE_TEMPLATE | sed -e "s/ARCH/$KALI_ARCH/")
lb clean --purge >prepare.log 2>&1 lb clean --purge >prepare.log 2>&1
lb config -a $KALI_ARCH $KALI_CONFIG_OPTS >>prepare.log 2>&1 lb config -a $KALI_ARCH $KALI_CONFIG_OPTS >>prepare.log 2>&1
lb build >/dev/null lb build >/dev/null

@ -1,11 +1,11 @@
# EFI support, ensure we have the required .deb in the ISO available for # EFI support, ensure we have the required .deb in the ISO available for
# installation # installation
#if ARCHITECTURES i386 #if ARCHITECTURE i386
grub-efi grub-efi
grub-efi-ia32 grub-efi-ia32
#endif #endif
#if ARCHITECTURES amd64 #if ARCHITECTURE amd64
grub-efi grub-efi
grub-efi-amd64 grub-efi-amd64
#endif #endif

@ -16,13 +16,13 @@ kbd
console-data console-data
console-common console-common
#if ARCHITECTURES armel armhf #if ARCHITECTURE armel armhf
cgpt cgpt
vboot-utils vboot-utils
vboot-kernel-utils vboot-kernel-utils
#endif #endif
#if ARCHITECTURES i386 amd64 #if ARCHITECTURE i386 amd64
firmware-b43legacy-installer firmware-b43legacy-installer
firmware-b43-installer firmware-b43-installer
guymager guymager
@ -35,7 +35,7 @@ guymager
# or you can just comment everything except the package of your # or you can just comment everything except the package of your
# preferred desktop. # preferred desktop.
#if ARCHITECTURES i386 amd64 #if ARCHITECTURE i386 amd64
# *** GNOME DESKTOP *** # *** GNOME DESKTOP ***
gnome-core gnome-core
gnome-brave-icon-theme gnome-brave-icon-theme
@ -44,7 +44,7 @@ nautilus-open-terminal
gnome-orca gnome-orca
#endif #endif
#if ARCHITECTURES armel armhf #if ARCHITECTURE armel armhf
# *** XFCE DESKTOP *** # *** XFCE DESKTOP ***
xfce4 xfce4
network-manager-gnome network-manager-gnome

Loading…
Cancel
Save