case "$MODE" in
    install)
        if [ -n "$EXCLUDE" ] ; then
            DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --exclude=$EXCLUDE"
        fi
        if [ -n "$INCLUDE" ] ; then
            DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --include=$INCLUDE"
        fi
        # Install base packages
        case $ARCH in
            armel)
                debootstrap --foreign $DEBOOTSTRAPOPTS --arch $ARCH $DIST $ROOT $MIRROR
                cp /usr/bin/qemu-arm-eabi "$ROOT"/usr/bin || echo "qemu-arm-eabi not found !"
                chroot "$ROOT" debootstrap/debootstrap --second-stage
            ;;
            *)
            debootstrap $DEBOOTSTRAPOPTS --arch $ARCH $DIST $ROOT $MIRROR
            ;;
        esac
        ;;
esac
