From: Reinhard Tartler Subject: Don't fail locale generation on ubuntu --- live-config-3.0~a22.orig/scripts/config/004-locales +++ live-config-3.0~a22/scripts/config/004-locales @@ -99,7 +99,9 @@ Configure_locales () fi printf 'LANG="%s"\n' "${LANG}" > /etc/default/locale - sed -i -e "s|# ${LANG} ${_CODEPAGE}|${LANG} ${_CODEPAGE}|" /etc/locale.gen + if [ -f /etc/locale.gen ]; then + sed -i -e "s|# ${LANG} ${_CODEPAGE}|${LANG} ${_CODEPAGE}|" /etc/locale.gen + fi locale-gen --keep-existing > /dev/null 2>&1