3 # Creates packages ISO (from current directory)
5 # Copyright (c) 2019, 2021 Matias Fonzo, <selk@dragora.org>.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
21 GENISOIMAGE
="${GENISOIMAGE:-genisoimage}"
33 echo "${0##*/}: it requires an argument 'i586' or 'amd64' for the ISO" 1>&2
37 ISONAME
="${ISONAME:-dragora-3.0_$(date +%Y%m%d)-${reflect_arch}-packages}"
41 $GENISOIMAGE -v -o ${ISONAME}.iso \
42 -A 'Official Dragora packages' \
43 -V 'Official Dragora packages' \
44 -m '.keep' -m "${0##*/}" -m 'makeTags' \
45 -x "dragora-*.iso*" -x $exclude_path \
46 -R -J -U -hide-rr-moved -uid 0 -gid 0 \
49 echo "Making .sha256 sum for ${ISONAME}.iso ..."
50 sha256sum
${ISONAME}.iso
> ${ISONAME}.iso.sha256