123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- set -e
- GENISOIMAGE="${GENISOIMAGE:-genisoimage}"
- case $1 in
- i586)
- reflect_arch=i586
- exclude_path=x86_64
- ;;
- x86_64)
- reflect_arch=x86_64
- exclude_path=i586
- ;;
- *)
- echo "${0##*/}: it requires an argument 'i586' or 'x86_64' for the ISO" 1>&2
- exit 1;
- esac
- ISONAME="${ISONAME:-dragora-3.0_$(date +%Y%m%d)-${reflect_arch}-packages}"
- rm -f -v $ISONAME
- $GENISOIMAGE -v -o ${ISONAME}.iso \
- -A 'Dragora Packages' -V 'Dragora Packages' \
- -m '.keep' -m "${0##*/}" -m 'makeTags' \
- -x "dragora-*.iso*" -x $exclude_path \
- -R -J -U -hide-rr-moved -uid 0 -gid 0 \
- -root packages .
- echo "Making .sha256 sum for ${ISONAME}.iso ..."
- sha256sum ${ISONAME}.iso > ${ISONAME}.iso.sha256
|