diff options
author | Jonathan Bauer | 2020-05-14 15:58:35 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-05-14 15:58:35 +0200 |
commit | 3707db265d58af579345627f79cf2ebf7a3a5a6c (patch) | |
tree | 85388deb362807004905edbf8133760c33a1e833 | |
parent | PowerTools is installed elsewhere (diff) | |
download | ansible-dracut-3707db265d58af579345627f79cf2ebf7a3a5a6c.tar.gz ansible-dracut-3707db265d58af579345627f79cf2ebf7a3a5a6c.tar.xz ansible-dracut-3707db265d58af579345627f79cf2ebf7a3a5a6c.zip |
remove old downloader files
-rw-r--r-- | slx-builder/files/downloader_env/CentOS-7 | 40 | ||||
-rw-r--r-- | slx-builder/files/downloader_env/CentOS-8 | 52 | ||||
-rw-r--r-- | slx-builder/files/downloader_env/Ubuntu-18 | 52 | ||||
-rwxr-xr-x | slx-builder/files/get_builder.sh | 151 |
4 files changed, 0 insertions, 295 deletions
diff --git a/slx-builder/files/downloader_env/CentOS-7 b/slx-builder/files/downloader_env/CentOS-7 deleted file mode 100644 index 61a0839..0000000 --- a/slx-builder/files/downloader_env/CentOS-7 +++ /dev/null @@ -1,40 +0,0 @@ -# systemd_init is obligatory! -# you should have defined every option(handler, url, path, branch, commit) -# sometimes the names are not reflective, it depends in the handler -modules=( "systemd_init" "dracut" "rebash" "dnbd3" "xmount" "qemu_xmount" ) - -systemd_init_handler="gitslx" -systemd_init_url="//git.openslx.org/openslx-ng/systemd-init.git" -systemd_init_path="systemd-init" -systemd_init_branch="stable" -systemd_init_commit="c63e555a86" - -dracut_handler="dracut" -dracut_url="https://www.kernel.org/pub/linux/utils/boot/dracut/dracut" -dracut_path="${systemd_init_path}/builder/dracut" -dracut_branch="046" -dracut_commit="" - -rebash_handler="github" -rebash_url="//github.com/jandob/rebash.git" -rebash_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/scripts/rebash" -rebash_branch="master" -rebash_commit="6ca5b39" - -dnbd3_handler="gitslx" -dnbd3_url="//git.openslx.org/dnbd3.git" -dnbd3_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/dnbd3" -dnbd3_branch="master" -dnbd3_commit="c881c79" - -qemu_xmount_handler="github" -qemu_xmount_url="//github.com/eaas-framework/qemu.git" -qemu_xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/qemu-xmount" -qemu_xmount_branch="libxmount_input" -qemu_xmount_commit="4873cd023da8511ed9792a318d1456c949046123" - -xmount_handler="github" -xmount_url="//github.com/eaas-framework/xmount.git" -xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/xmount" -xmount_branch="master" -xmount_commit="0151375" diff --git a/slx-builder/files/downloader_env/CentOS-8 b/slx-builder/files/downloader_env/CentOS-8 deleted file mode 100644 index 1405fb5..0000000 --- a/slx-builder/files/downloader_env/CentOS-8 +++ /dev/null @@ -1,52 +0,0 @@ -# systemd_init is obligatory! -# you should have defined every option(handler, url, path, branch, commit) -# sometimes the names are not reflective, it depends in the handler -modules=( "systemd_init" "dracut" "rebash" "dnbd3" "xmount" "qemu_xmount" "kernel_qcow2_util_linux" "kernel_qcow2_linux" ) - -systemd_init_handler="gitslx" -systemd_init_url="//git.openslx.org/openslx-ng/systemd-init.git" -systemd_init_path="systemd-init" -systemd_init_branch="downloader" -systemd_init_commit="" - -dracut_handler="dracut" -dracut_url="https://www.kernel.org/pub/linux/utils/boot/dracut/dracut" -dracut_path="${systemd_init_path}/builder/dracut" -dracut_branch="047" -dracut_commit="" - -rebash_handler="github" -rebash_url="//github.com/jandob/rebash.git" -rebash_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/scripts/rebash" -rebash_branch="master" -rebash_commit="6ca5b39" - -dnbd3_handler="gitslx" -dnbd3_url="//git.openslx.org/dnbd3-ng.git" -dnbd3_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/dnbd3" -dnbd3_branch="master" -dnbd3_commit="b57dadc2d" - -qemu_xmount_handler="github" -qemu_xmount_url="//github.com/eaas-framework/qemu.git" -qemu_xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/qemu-xmount" -qemu_xmount_branch="libxmount_input" -qemu_xmount_commit="4873cd023da8511ed9792a318d1456c949046123" - -xmount_handler="github" -xmount_url="//github.com/eaas-framework/xmount.git" -xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/xmount" -xmount_branch="master" -xmount_commit="0151375" - -kernel_qcow2_util_linux_handler="gitslx" -kernel_qcow2_util_linux_url="//git.openslx.org/openslx/kernel-qcow2-util-linux.git" -kernel_qcow2_util_linux_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/kernel-qcow2-util-linux" -kernel_qcow2_util_linux_branch="kernel-qcow2" -kernel_qcow2_util_linux_commit="0692b96" - -kernel_qcow2_linux_handler="gitslx" -kernel_qcow2_linux_url="//git.openslx.org/openslx/kernel-qcow2-linux.git" -kernel_qcow2_linux_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/kernel-qcow2-linux" -kernel_qcow2_linux_branch="kernel-qcow2-linux-4.18.x-centos" -kernel_qcow2_linux_commit="0761b3e9e03" diff --git a/slx-builder/files/downloader_env/Ubuntu-18 b/slx-builder/files/downloader_env/Ubuntu-18 deleted file mode 100644 index 05eaf20..0000000 --- a/slx-builder/files/downloader_env/Ubuntu-18 +++ /dev/null @@ -1,52 +0,0 @@ -# systemd_init is obligatory! -# you should have defined every option(handler, url, path, branch, commit) -# sometimes the names are not reflective, it depends in the handler -modules=( "systemd_init" "dracut" "rebash" "dnbd3" "xmount" "qemu_xmount" "kernel_qcow2_util_linux" "kernel_qcow2_linux" ) - -systemd_init_handler="gitslx" -systemd_init_url="//git.openslx.org/openslx-ng/systemd-init.git" -systemd_init_path="systemd-init" -systemd_init_branch="downloader" -systemd_init_commit="" - -dracut_handler="dracut" -dracut_url="https://www.kernel.org/pub/linux/utils/boot/dracut/dracut" -dracut_path="${systemd_init_path}/builder/dracut" -dracut_branch="047" -dracut_commit="" - -rebash_handler="github" -rebash_url="//github.com/jandob/rebash.git" -rebash_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/scripts/rebash" -rebash_branch="master" -rebash_commit="6ca5b39" - -dnbd3_handler="gitslx" -dnbd3_url="//git.openslx.org/dnbd3.git" -dnbd3_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/dnbd3" -dnbd3_branch="master" -dnbd3_commit="c881c79" - -qemu_xmount_handler="github" -qemu_xmount_url="//github.com/eaas-framework/qemu.git" -qemu_xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/qemu-xmount" -qemu_xmount_branch="libxmount_input" -qemu_xmount_commit="4873cd023da8511ed9792a318d1456c949046123" - -xmount_handler="github" -xmount_url="//github.com/eaas-framework/xmount.git" -xmount_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/xmount" -xmount_branch="master" -xmount_commit="0151375" - -kernel_qcow2_util_linux_handler="gitslx" -kernel_qcow2_util_linux_url="//git.openslx.org/openslx/kernel-qcow2-util-linux.git" -kernel_qcow2_util_linux_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/kernel-qcow2-util-linux" -kernel_qcow2_util_linux_branch="kernel-qcow2" -kernel_qcow2_util_linux_commit="0692b96" - -kernel_qcow2_linux_handler="gitslx" -kernel_qcow2_linux_url="//git.openslx.org/openslx/kernel-qcow2-linux.git" -kernel_qcow2_linux_path="${systemd_init_path}/builder/modules.d/dnbd3-rootfs/binaries/kernel-qcow2-linux" -kernel_qcow2_linux_branch="kernel-qcow2-linux-4.19.y" -kernel_qcow2_linux_commit="f9b4646" diff --git a/slx-builder/files/get_builder.sh b/slx-builder/files/get_builder.sh deleted file mode 100755 index fcc15b9..0000000 --- a/slx-builder/files/get_builder.sh +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env bash -# -*- coding: utf-8 -*- -# region header -# Copyright Torben Sickert (info["~at~"]torben.website) 29.10.2015 -# Janosch Dobler (info["~at~"]jandob.com) 29.10.2015 -# Jonathan Bauer (jonathan.bauer@rz.uni-freiburg.de) 19.09.2019 -# Thiago Abdo (tjabdo@inf.ufpr.br) 06-11-2019 - -# License -# ------- -# This library written by Torben Sickert and Janosch Dobler stand under a -# creative commons naming 3.0 unported license. -# see http://creativecommons.org/licenses/by/3.0/deed.de -## endregion - -declare -g verbose="no" -declare -g debug="no" -declare -g version="build_versions" - -print_help_message() { - echo "Downloader for systemd-init" - echo "Can set the env file with --version(default is build_versions)" - echo "$0: [--dev] [--verbose] [--version <version_file>] [--debug]" - exit "${1:-0}" -} - -parse_command_line() { - while true; do - case "$1" in - --help) - shift - print_help_message 0 - ;; - --verbose) - shift - verbose='yes' - ;; - --debug) - shift - verbose='yes' - debug='yes' - set -x - ;; - --version) - shift - version="$1" - shift - ;; - '') - break - ;; - *) - echo "Error with given option \"$1\": This argument is not available." - print_help_message 1 - esac - done - return 0 -} - -vecho() { - if [ $verbose == "yes" ]; then - echo $@ - fi -} - -git_parser() { - local branch=$1 - local commit=$2 - local path=$3 - local url=$4 - vecho "> git b-$branch c-$commit p-$path u-$url" - vecho "> args: $@" - - local gitargs=() - if [[ -n "$branch" ]]; then - gitargs+=("--single-branch --branch $branch") - fi - rm -rf $path - if [[ -z $commit ]]; then - version=$branch - else - version=$commit - fi - local revision=$version - git clone --depth 1 --branch ${branch} git:${url} ${path} - pushd $path - local i=50 - while ! git rev-parse --quiet --verify $version^{commit}; do - git fetch --depth=$(( i+=50 )) - done - git reset --hard $version - popd -} - -github_parser() { - local branch=$1 - local commit=$2 - local path=$3 - local url=$4 - vecho "> github b-$branch c-$commit p-$path u-$url" - vecho "> args: $@" - git_parser "$branch" "$commit" "$path" "$url" -} - -gitslx_parser() { - local branch=$1 - local commit=$2 - local path=$3 - local url=$4 - vecho "> gitslx b-$branch c-$commit p-$path u-$url" - vecho "> args: $@" - git_parser "$branch" "$commit" "$path" "$url" -} - -dracut_parser() { - local branch=$1 - local commit=$2 - local path=$3 - local url=$4 - - local dracut_version=${branch} - local dracut_resource_url="$url-$dracut_version.tar.gz" - if [[ ! -f "${path}/install/dracut-install" ]]; then - mkdir --parents "${path}" - echo "Download and extract dracut version $dracut_version" - curl --location "$dracut_resource_url" | tar --extract --gzip \ - --directory "${path}" --strip-components 1 - fi -} - -parse_command_line $@ - -. $version - -vecho "Verbose: $verbose" -vecho "version_file: $version" -vecho "modules: ${modules[@]}" - -for i in "${modules[@]}"; do - echo $i - eval \$\{${i}_handler\}_parser \"\$${i}_branch\" \"\$${i}_commit\" \"\$${i}_path\" \"\$${i}_url\" -done - -pushd ${systemd_init_path} -git submodule foreach ' - for p in $(find ${toplevel}/builder/patches/${path##*/} -type f -name "*.patch" | sort -n); do - patch -p1 < $p || echo "Failed to patch $path with $p - expect errors." - done 2>/dev/null -' -popd - |