set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live --linux-packages "linux-image linux-headers" "${@}"
+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" "${@}"
set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live --linux-packages "linux-image linux-headers" "${@}"
+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" "${@}"
set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live --linux-packages "linux-image linux-headers" "${@}"
+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" "${@}"
set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live "${@}"
+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" "${@}"
set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live "${@}"
+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" "${@}"
set -e
-lb config noauto --clean --ignore-system-defaults --mode debian --debian-installer live --linux-packages "linux-image linux-headers" "${@}"
+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" "${@}"