Browse Source

packages: Adjust makeISO script

Signed-off-by: Matías Fonzo <selk@dragora.org>
master
Matías Fonzo 3 months ago
parent
commit
b68b716508
No known key found for this signature in database GPG Key ID: 3AAF1CEC203A99D5
  1. 15
      packages/makeISO

15
packages/makeISO

@ -2,7 +2,7 @@
#
# Creates packages ISO (from current directory)
#
# Copyright (c) 2019 Matias Fonzo, <selk@dragora.org>.
# Copyright (c) 2019, 2021 Matias Fonzo, <selk@dragora.org>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -23,14 +23,14 @@ GENISOIMAGE="${GENISOIMAGE:-genisoimage}"
case $1 in
i586)
reflect_arch=i586
exclude_path=x86_64
exclude_path=amd64
;;
x86_64)
reflect_arch=x86_64
reflect_arch=amd64
exclude_path=i586
;;
*)
echo "${0##*/}: it requires an argument 'i586' or 'x86_64' for the ISO" 1>&2
echo "${0##*/}: it requires an argument 'i586' or 'amd64' for the ISO" 1>&2
exit 1;
esac
@ -39,7 +39,8 @@ 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' \
-A 'Official Dragora packages' \
-V 'Official Dragora packages' \
-m '.keep' -m "${0##*/}" -m 'makeTags' \
-x "dragora-*.iso*" -x $exclude_path \
-R -J -U -hide-rr-moved -uid 0 -gid 0 \
@ -48,3 +49,7 @@ $GENISOIMAGE -v -o ${ISONAME}.iso \
echo "Making .sha256 sum for ${ISONAME}.iso ..."
sha256sum ${ISONAME}.iso > ${ISONAME}.iso.sha256
echo ""
echo "Done!."
echo ""
Loading…
Cancel
Save