mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Distribution support status was not read when creating only BSP package (#2693)
This commit is contained in:
@@ -632,15 +632,15 @@ function distros_options() {
|
||||
|
||||
function set_distribution_status() {
|
||||
|
||||
local distro_support_desc_filepath="${DISTRIBUTIONS_DESC_DIR}/${RELEASE}/support"
|
||||
local distro_support_desc_filepath="${SRC}/${DISTRIBUTIONS_DESC_DIR}/${RELEASE}/support"
|
||||
if [[ ! -f "${distro_support_desc_filepath}" ]]; then
|
||||
exit_with_error "Distribution ${distribution_name} does not exist"
|
||||
else
|
||||
DISTRIBUTION_STATUS="$(cat "${distro_support_desc_filepath}")"
|
||||
fi
|
||||
|
||||
|
||||
[[ "${DISTRIBUTION_STATUS}" != "supported" ]] && [[ "${EXPERT}" != "yes" ]] && exit_with_error "Armbian ${RELEASE} is unsupported and, therefore, only available to experts (EXPERT=yes)"
|
||||
|
||||
|
||||
}
|
||||
|
||||
adding_packages()
|
||||
|
||||
@@ -266,6 +266,9 @@ fi
|
||||
activate update-initramfs
|
||||
EOF
|
||||
|
||||
# read distribution support status
|
||||
set_distribution_status
|
||||
|
||||
# armhwinfo, firstrun, armbianmonitor, etc. config file
|
||||
cat <<-EOF > "${destination}"/etc/armbian-release
|
||||
# PLEASE DO NOT EDIT THIS FILE
|
||||
|
||||
Reference in New Issue
Block a user