#!/bin/sh

set -e

case "$(dpkg --print-architecture)" in
	amd64)
		_LINUX_FLAVOURS="amd64"
		;;

	i386)
		_LINUX_FLAVOURS="486 686-pae"
		;;
esac

lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live --linux-flavours "${_LINUX_FLAVOURS}" --linux-packages "linux-image linux-headers" "${@}"
