summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-02 12:41:35 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-02 12:41:35 +0100
commit1c74927fe5e4c715b9ec9a5fdce8506869149d83 (patch)
tree07f22cf6bf09289a2bbf527c60169626c9c73c80 /functions
parentf78001144b56993de751be78983b9d01a9d73dd7 (diff)
downloadvyos-live-build-1c74927fe5e4c715b9ec9a5fdce8506869149d83.tar.gz
vyos-live-build-1c74927fe5e4c715b9ec9a5fdce8506869149d83.zip
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
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/configuration.sh19
1 files changed, 1 insertions, 18 deletions
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 2fba5a148..0793c0dc8 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -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}}"