#!/bin/sh 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" lh config noauto \ --iso-volume KANOTIX \ --iso-preparer kanotix.com \ --iso-publisher kanotix.com \ --hostname Kanotix \ --username kanotix \ --chroot-filesystem squashfs \ --debian-installer false \ --apt aptitude \ --apt-recommends false \ --bootappend-live 'quiet live-config.utc=no live-config.timezone=Europe/Berlin live-config.locales=de live-config.keyboard-layouts=de live-config.keyboard-variant=nodeadkeys' \ --distribution squeeze \ --archive-areas "main contrib non-free" \ --repositories "live.debian.net acritox excalibur hellfire" \ --security true \ --checksums md5 \ --bootloader syslinux \ --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 \ --packages-lists "standard-x11" \ ${@} . config/bootstrap # architecture depending stuff (e.g. kernel) case $LH_ARCHITECTURE in "amd64") lh config noauto \ --linux-flavours amd64 \ --linux-packages "linux-image-2.6 linux-headers-2.6" ;; "i386") lh config noauto \ --linux-flavours 686-bigmem \ --linux-packages "linux-image-2.6 linux-headers-2.6" ;; esac # Fetch kanotix-scripts if necessary mkdir -p config/chroot_local-includes/usr/local/bin grep -oe '^[^ #]*' scripts.urls | wget -i- -c -N -q -P config/chroot_local-includes/usr/local/bin chmod 755 config/chroot_local-includes/usr/local/bin/*.sh # Include nvidia-driver into chroot if [ -f config/chroot_local-includes/usr/local/bin/install-nvidia-debian.sh ]; then mkdir -p config/chroot_local-includes/usr/src VER="$(grep -o ^VER=.* config/chroot_local-includes/usr/local/bin/install-nvidia-debian.sh|sed s/VER=//)" ARCH=; [ "$LH_ARCHITECTURE" = "amd64" ] && ARCH="_64" URL="http://download.nvidia.com/XFree86/Linux-x86$ARCH/$VER/NVIDIA-Linux-x86$ARCH-$VER.run" CACHEURL="cache/$(basename "$URL")" [ "$LH_CACHE" = "false" ] && CACHEURL="config/chroot_local-includes/usr/src/$(basename "$URL")" [ ! -e "$CACHEURL" ] && wget -O"$CACHEURL" "$URL" cp "$CACHEURL" "config/chroot_local-includes/usr/src/$(basename "$URL")" 2>/dev/null fi