Skip to content

Commit

Permalink
repo-list: fix build issue with eos distribution
Browse files Browse the repository at this point in the history
armbian repo doesn't existed in eos distribution, which makes `apt update` fail.
  • Loading branch information
hzyitc authored and igorpecovnik committed Mar 3, 2024
1 parent 2cd46ac commit 1d31aac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/functions/rootfs/distro-specific.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ function create_sources_list_and_deploy_repo_key() {
# replace local package server if defined. Suitable for development
[[ -n $LOCAL_MIRROR ]] && echo "deb ${SIGNED_BY}http://$LOCAL_MIRROR $RELEASE ${components[*]}" > "${basedir}"/etc/apt/sources.list.d/armbian.list

# disable repo if SKIP_ARMBIAN_REPO==yes, or if when==image-early.
if [[ "${when}" == "image-early" || "${SKIP_ARMBIAN_REPO}" == "yes" ]]; then
# disable repo if DISTRIBUTION_STATUS==eos, or if SKIP_ARMBIAN_REPO==yes, or if when==image-early.
if [[ "${when}" == "image-early" || \
"$(cat "${SRC}/config/distributions/${RELEASE}/support")" == "eos" || \
"${SKIP_ARMBIAN_REPO}" == "yes" ]]; then
display_alert "Disabling Armbian repo" "${ARCH}-${RELEASE} :: skip:${SKIP_ARMBIAN_REPO:-"no"} when:${when}" "info"
mv "${SDCARD}"/etc/apt/sources.list.d/armbian.list "${SDCARD}"/etc/apt/sources.list.d/armbian.list.disabled
fi
Expand Down

0 comments on commit 1d31aac

Please sign in to comment.