diff --git a/distributions/JELOS/options b/distributions/JELOS/options index fbde73174..1b6814273 100644 --- a/distributions/JELOS/options +++ b/distributions/JELOS/options @@ -7,6 +7,12 @@ # HARDENING (security relevant linker and compiler flags) support HARDENING_SUPPORT="no" +# The name of the parent organization for updates + GIT_ORGANIZATION="JustEnoughLinuxOS" + +# The name of the github project for updates + GIT_REPO="distribution" + # Name of the Distro to build (full name, without special characters) DISTRONAME="JELOS" diff --git a/packages/jelos/sources/scripts/system-upgrade b/packages/jelos/sources/scripts/system-upgrade index 7aca07be7..009b5cd6c 100755 --- a/packages/jelos/sources/scripts/system-upgrade +++ b/packages/jelos/sources/scripts/system-upgrade @@ -4,15 +4,17 @@ . /etc/profile -ORGANIZATION="JustEnoughLinuxOS" +ORGANIZATION="${GIT_ORGANIZATION}" BRANCH="$(get_setting updates.branch)" -if [ "${BRANCH}" == "dev" ] -then - PROJECT="distribution-dev" -else - PROJECT="distribution" -fi +case ${BRANCH} in + dev) + PROJECT="${GIT_REPO}-dev" + ;; + *) + PROJECT="${GIT_REPO}" + ;; +esac FORCE="$(get_setting updates.force)" diff --git a/packages/jelos/sources/scripts/updatecheck b/packages/jelos/sources/scripts/updatecheck index 470f3f8cb..2ec458d95 100755 --- a/packages/jelos/sources/scripts/updatecheck +++ b/packages/jelos/sources/scripts/updatecheck @@ -4,15 +4,16 @@ . /etc/profile -ORGANIZATION="JustEnoughLinuxOS" - +ORGANIZATION="${GIT_ORGANIZATION}" BRANCH="$(get_setting updates.branch)" -if [ "${BRANCH}" == "dev" ] -then - PROJECT="distribution-dev" -else - PROJECT="distribution" -fi +case ${BRANCH} in + dev) + PROJECT="${GIT_REPO}-dev" + ;; + *) + PROJECT="${GIT_REPO}" + ;; +esac GIT_REPO="https://github.com/${ORGANIZATION}/${PROJECT}" GIT_API="https://api.github.com/repos/${ORGANIZATION}/${PROJECT}" diff --git a/scripts/image b/scripts/image index 58b79cbc9..ae2dfb920 100755 --- a/scripts/image +++ b/scripts/image @@ -135,15 +135,23 @@ echo "${TARGET_VERSION}" > ${INSTALL}/etc/release cat <${INSTALL}/etc/os-release OS_NAME="${DISTRONAME}" OS_VERSION="${OS_VERSION}" -HW_DEVICE="${DEVICE}" -HW_ARCH="${ARCH}" -HW_CPU="${HW_CPU}" +GIT_ORGANIZATION="${GIT_ORGANIZATION}" +GIT_REPO="${GIT_REPO}" HOME_URL="${HOME_URL}" BUILD_ID="${GIT_HASH}" BUILD_BRANCH="$(git branch --show-current)" BUILD_DATE="${BUILD_DATE}" +HW_DEVICE="${DEVICE}" +HW_ARCH="${ARCH}" EOF +if [ -zn "${HW_CPU}" ] +then + cat <>${INSTALL}/etc/os-release +HW_CPU="${HW_CPU}" +EOF +fi + # Add release notes / changelog if [ -n "${RELEASE_NOTES}" ] && [ -f "${RELEASE_NOTES}" ]; then