#!/bin/bash MIRROR_CHROOT=http://ftp.de.debian.org/debian MIRROR_CHROOT_SECURITY=http://security.debian.org/ MIRROR_BINARY=http://ftp.de.debian.org/debian MIRROR_BINARY_SECURITY=http://security.debian.org/ MIRROR_BOOTSTRAP="$MIRROR_CHROOT" . auto/kanotix # preset kanotix defaults export LB_PACKAGES_LISTS="kanotix-master" export LB_BOOTLOADER="syslinux" export LB_SYSLINUX_MENU_LIVE_ENTRY="Kanotix" export LB_LINUX_PACKAGES="linux-image linux-headers" lb config noauto \ --iso-volume KANOTIX \ --iso-preparer kanotix.com \ --iso-publisher kanotix.com \ --chroot-filesystem squashfs \ --debian-installer false \ --apt apt \ --apt-recommends false \ --bootappend-live 'utc=no timezone=Europe/Berlin locales=de keyboard-layouts=de keyboard-variant=nodeadkeys splash' \ --distribution squeeze \ --archive-areas "main contrib non-free" \ --repositories "live.debian.net acritox hellfire lo wine-ppa firefox" \ --security true \ --checksums md5 \ --syslinux-timeout 5 \ --syslinux-menu true \ --syslinux-splash config/binary_syslinux/splash.png \ --memtest memtest86+ \ --mirror-bootstrap ${MIRROR_BOOTSTRAP} \ --mirror-chroot ${MIRROR_CHROOT} \ --mirror-chroot-security ${MIRROR_CHROOT_SECURITY} \ --mirror-binary ${MIRROR_BINARY} \ --mirror-binary-security ${MIRROR_BINARY_SECURITY} \ --binary-indices true \ --backports true \ "${@}" # hostname and username are configured in config/chroot_local-includes/etc/live/config.conf #lb config noauto \ # --hostname Kanotix \ # --username kanotix \ . config/binary . config/bootstrap . config/chroot # architecture depending stuff (e.g. kernel) case $LB_ARCHITECTURE in "amd64") lb config noauto \ --linux-flavours generic \ --linux-packages "linux-image-3.2.0-17 linux-headers-3.2.0-17" #--linux-packages "linux-image linux-headers" #--linux-flavours amd64 \ #--linux-packages "linux-image-2.6 linux-headers-2.6" ;; "i386") lb config noauto \ --linux-flavours generic \ --linux-packages "linux-image-3.2.0-15 linux-headers-3.2.0-15" #--linux-packages "linux-image linux-headers" #--linux-flavours 686-bigmem \ #--linux-packages "linux-image-2.6 linux-headers-2.6" ;; esac [ "$LB_BOOTLOADER" = "burg" ] && LB_REPOSITORIES+=" burg" grep -wq trinity <<<"$LB_PACKAGES_LISTS" && LB_REPOSITORIES+=" trinity" grep -wq -e virtualbox -e vbox <<<"$LB_PACKAGES $LB_PACKAGES_LISTS" && LB_REPOSITORIES+=" vbox" grep -wq -e opera <<<"$LB_PACKAGES $LB_PACKAGES_LISTS" && LB_REPOSITORIES+=" opera" grep -wq chrome <<<"$LB_PACKAGES $LB_PACKAGES_LISTS" && LB_REPOSITORIES+=" chrome" lb config noauto --repositories "$LB_REPOSITORIES" # Fetch kanotix-scripts if necessary mkdir -p config/chroot_local-includes/usr/local/bin grep -oe '^[^ #]*' scripts.urls | wget -i- -N -q -P config/chroot_local-includes/usr/local/bin chmod 755 config/chroot_local-includes/usr/local/bin/*.sh chmod 755 config/chroot_local-includes/usr/local/bin/*.bash exit 1