config: simplify mode default

all roads lead to debian

i was waiting to get to the work on properly tackling the mode stuff, but
let's just tidy this now...

Gbp-Dch: Ignore
This commit is contained in:
Lyndon Brown 2020-05-02 12:41:35 +01:00
parent f78001144b
commit 1c74927fe5
1 changed files with 1 additions and 18 deletions

View File

@ -36,24 +36,7 @@ Prepare_config ()
LB_SYSTEM="${LB_SYSTEM:-live}"
if command -v lsb_release >/dev/null
then
local _DISTRIBUTOR
_DISTRIBUTOR="$(lsb_release -is | tr "[A-Z]" "[a-z]")"
case "${_DISTRIBUTOR}" in
debian)
LB_MODE="${LB_MODE:-${_DISTRIBUTOR}}"
;;
*)
LB_MODE="${LB_MODE:-debian}"
;;
esac
else
LB_MODE="${LB_MODE:-debian}"
fi
LB_MODE="${LB_MODE:-debian}"
LB_DERIVATIVE="false"
LB_DISTRIBUTION="${LB_DISTRIBUTION:-buster}"
LB_DISTRIBUTION_CHROOT="${LB_DISTRIBUTION_CHROOT:-${LB_DISTRIBUTION}}"