Skip to content

Commit 89df1d8

Browse files
committed
Start support to variant with unmodified file name, start adding support for raspios64
1 parent 32a7a43 commit 89df1d8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/modules/base/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ if [ "${BASE_DISTRO}" == "ubuntu" ]; then
1919
[ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/ubuntu-*.xz | head -n 1`
2020
# Default user ubuntu
2121
[ -n "$BASE_USER" ] || BASE_USER=ubuntu
22+
elif [ "${BASE_DISTRO}" == "raspios64" ]; then
23+
[ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/*-{raspbian,raspios}-*-arm64-*.zip | head -n 1`
2224
else
2325
# Default image raspbian
2426
[ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/*-{raspbian,raspios}*.zip | head -n 1`
@@ -81,3 +83,6 @@ fi
8183
# Arch for now either armv7l, arm64 or aarch64
8284
[ -n "$BASE_ARCH" ] || BASE_ARCH=armv7l
8385

86+
# If you want your variant not to have the name appending, enable this
87+
[ -n "$BASE_IGNORE_VARIANT_NAME" ] || BASE_IGNORE_VARIANT_NAME=no
88+

src/release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ if [ "${BASE_RELEASE_IMG_NAME}" == "default" ]; then
2525
# Handle variant name
2626
for CHANGE_STRING in "${CHANGE_STRING_LIST[@]}"
2727
do
28-
if [ -z "$1" ];then
29-
IMG_FILENAME=$(echo "${FILENAME::-4}"-"${DIST_VERSION}" | sed "s/${CHANGE_STRING}/${DIST_NAME,,}/").img
28+
if [ -z "$1" ] || [ "$BASE_IGNORE_VARIANT_NAME" == "yes" ] ;then
29+
IMG_FILENAME=$(echo "${FILENAME::-4}"-"${DIST_VERSION}" | sed "s/${CHANGE_STRING}/${DIST_NAME,,}/").img
3030
else
3131
IMG_FILENAME=$(echo "${FILENAME::-4}"-"${DIST_VERSION}" | sed "s/${CHANGE_STRING}/${DIST_NAME,,}-$1/").img
3232
fi

0 commit comments

Comments
 (0)