gh-57: Generate ISO from the out/ directory

pull/100/merge
Vlastimil Holer 7 years ago
parent 8f74136a5c
commit fb9276351a
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -1,6 +1,7 @@
TARGETS='el6 el7 el7_ec2 suse deb deb_ec2 alpine'
TARGETS='el6 el7 el7_ec2 suse deb deb_ec2 alpine iso'
set -e
for TARGET in $TARGETS; do
TARGET="${TARGET}" ./generate.sh
done

@ -56,6 +56,8 @@ if [ "${TYPE}" = 'deb' ]; then
elif [ "${TYPE}" = 'apk' ]; then
RELEASE_FULL="r${RELEASE_FULL}"
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${TYPE}"
elif [ "${TYPE}" = 'iso' ]; then
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.${TYPE}"
else
FILENAME="${NAME}-${VERSION}-${RELEASE_FULL}.noarch.${TYPE}"
fi
@ -107,6 +109,14 @@ fi
if [ "${TYPE}" = 'dir' ]; then
cp -rT "${BUILD_DIR}" "${OUT}"
elif [ "${TYPE}" = 'iso' ]; then
mkisofs -J -R -input-charset utf8 \
-m '*.iso' \
-V "${FILENAME%.*}" \
-o "${OUT}" \
$(dirname "${OUT}")
else
CONFIG_FILES=$(cd "${BUILD_DIR}" && \
find etc/ \

@ -131,6 +131,10 @@ case "${TARGET}" in
PREUN=${PREUN:-preuninstall.ec2 preuninstall}
;;
'iso')
NAME=${NAME:-one-context-linux}
TYPE=${TYPE:-iso}
;;
'arch')
NAME=${NAME:-one-context}

Loading…
Cancel
Save