customos: fix to use custom os name instead of base os name

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib79c633a0eea6903f3abff3d5824c4beb538e3f3
This commit is contained in:
Dongjin Kim
2022-04-10 16:16:42 +09:00
parent fd073455ab
commit cb97cd908a

View File

@@ -94,7 +94,14 @@ fi
[ "${RUN_MENU}" = "true" ] && do_menu
[ "x${ISOIMAGE}" = "xtrue" ] && LIVESYSTEM=true
[ "x${IMAGE_FILE}" = "x" ] && IMAGE_FILE=$(image_file ${DISTRO} ${FLAVOUR} ${BOARD})
if [ "x${IMAGE_FILE}" = "x" ]; then
if [ "x${CUSTOMOS}" = "x" ]; then
MIDNAME=${FLAVOUR}
else
MIDNAME=${CUSTOMOS}
fi
IMAGE_FILE=$(image_file ${DISTRO} ${MIDNAME} ${BOARD})
fi
if [ "x${LIVESYSTEM}" = "xtrue" ]; then
IMAGE_FILE=${IMAGE_FILE}-live