remove torrent creation

This commit is contained in:
Tobias Powalowski 2022-02-09 16:36:28 +01:00
parent 25a61c57c6
commit 38708e73f8
5 changed files with 37 additions and 47 deletions

View file

@ -12,30 +12,30 @@ echo "Starting container creation ..."
echo "Create directory ${_DIR} ..."
mkdir "${_DIR}"
if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then
_prepare_pacman
_install_base_packages
_clean_mkinitcpio
_clean_cache
_install_archboot
_umount_special
_clean_container
_clean_archboot_cache
_generate_keyring
_generate_locales
_clean_locale
_copy_mirrorlist_and_pacman_conf
_change_pacman_conf
_prepare_pacman || exit 1
_install_base_packages || exit 1
_clean_mkinitcpio || exit 1
_clean_cache || exit 1
_install_archboot || exit 1
_umount_special || exit 1
_clean_container || exit 1
_clean_archboot_cache || exit 1
_generate_keyring || exit 1
_generate_locales || exit 1
_clean_locale || exit 1
_copy_mirrorlist_and_pacman_conf || exit 1
_change_pacman_conf || exit 1
fi
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
_aarch64_pacman_chroot
_aarch64_install_base_packages
_clean_mkinitcpio
_clean_cache
_aarch64_install_archboot
_clean_mkinitcpio
_clean_cache
_clean_container
_clean_locale
_aarch64_pacman_chroot || exit 1
_aarch64_install_base_packages || exit 1
_clean_mkinitcpio || exit 1
_clean_cache || exit 1
_aarch64_install_archboot || exit 1
_clean_mkinitcpio || exit 1
_clean_cache || exit 1
_clean_container || exit 1
_clean_locale || exit 1
fi
_set_hostname
_set_hostname || exit 1
echo "Finished container setup in ${_DIR} ."

View file

@ -9,6 +9,5 @@ _root_check
echo "Start release creation in $1 ..."
_create_iso "$@" || exit 1
_create_boot || exit 1
_create_torrent || exit 1
_create_cksum || exit 1
echo "Finished release creation in ${1} ."

View file

@ -11,19 +11,19 @@ _root_check
_x86_64_check
echo "Starting container creation ..."
echo "Create directories in ${_DIR} ..."
_prepare_pacman
_install_base_packages
_clean_mkinitcpio
_clean_cache
_install_archboot
_umount_special
_clean_container
_clean_archboot_cache
_generate_locales
_clean_locale
_generate_keyring
_copy_mirrorlist_and_pacman_conf
_change_pacman_conf
_prepare_pacman || exit 1
_install_base_packages || exit 1
_clean_mkinitcpio || exit 1
_clean_cache || exit 1
_install_archboot || exit 1
_umount_special || exit 1
_clean_container || exit 1
_clean_archboot_cache || exit 1
_generate_locales || exit 1
_clean_locale || exit 1
_generate_keyring || exit 1
_copy_mirrorlist_and_pacman_conf || exit 1
_change_pacman_conf || exit 1
# enable [testing] if enabled in host
if grep -q "^\[testing" /etc/pacman.conf; then
echo "Enable [testing] repository in container ..."
@ -31,6 +31,6 @@ if grep -q "^\[testing" /etc/pacman.conf; then
sed -i -e '/^#\[community-testing\]/ { n ; s/^#// }' "${_DIR}/etc/pacman.conf"
sed -i -e 's:^#\[testing\]:\[testing\]:g' -e 's:^#\[community-testing\]:\[community-testing\]:g' "${_DIR}/etc/pacman.conf"
fi
_set_hostname
_set_hostname || exit 1
echo "Finished container setup in ${_DIR} ."

View file

@ -10,7 +10,6 @@ _x86_64_check
echo "Start release creation in $1 ..."
_create_iso "$@" || exit 1
_create_boot || exit 1
_create_torrent || exit 1
_create_cksum || exit 1
echo "Finished release creation in ${1} ."

View file

@ -70,14 +70,6 @@ _create_boot() {
[[ "${_ARCH}" == "aarch64" ]] || cp /usr/share/licenses/intel-ucode/* boot/licenses/intel-ucode/
}
_create_torrent() {
# create torrent files
for i in *.iso; do
echo "Generating ${i} torrent ..."
archboot-mktorrent.sh archboot/"${i}" "${i}" >/dev/null 2>&1
done
}
_create_cksum() {
# create sha256sums
echo "Generating sha256sum ..."