Merge pull request #196 from minextu/improvements-for-ci

Improvements for automated deployment
pull/238/merge
Jan Houben 7 years ago committed by GitHub
commit ccabb43433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      conf.sh
  2. 130
      lib.sh
  3. 38
      push.sh
  4. 42
      repo.sh
  5. 5
      scraper.sh
  6. 13
      src/kernels/linux-hardened.sh
  7. 13
      src/kernels/linux-lts.sh
  8. 13
      src/kernels/linux-vfio.sh
  9. 13
      src/kernels/linux-zen.sh
  10. 13
      src/kernels/linux.sh
  11. 3
      temp/.gitignore
  12. 2
      verifier.sh

@ -16,9 +16,9 @@ zfs_initcpio_hook_hash="3eb874cf2cbb6c6a0e1c11a98af54f682d6225667af944b43435aeab
email="jeezusjr@gmail.com"
# Repository path and name
repo_name="archzfs"
repo_basename="archzfs"
repo_basepath="/repo"
repo_name_test="archzfs-testing"
repo_remote_basepath="/home/jalvarez/webapps/default"
# SSH login address (can use ssh config Hosts)
remote_login="webfaction"
@ -28,8 +28,5 @@ gpg_sign_key='0EE7A126'
chroot_path="/repo/chroot/x86_64/$(whoami)"
# Package backup directory
package_backup_dir="/repo/archive_archzfs"
# Used to run mkaurball and mksrcinfo with lower privledges
makepkg_nonpriv_user="demizer"

130
lib.sh

@ -444,13 +444,11 @@ check_internet() {
}
check_webpage() {
get_webpage() {
# $1: The url to scrape
# $2: The Perl regex to match with
# $3: Expect match
debug "Checking webpage: $1"
debug "Using regex: `printf "%q" "$2"`"
debug "Expecting: $3"
run_cmd_no_output "curl -sL ${1}"
@ -468,11 +466,23 @@ check_webpage() {
return 55
fi
local scraped_string=$(echo "${run_cmd_output}" | \grep -Po -m 1 "${2}")
debug "Got \"${scraped_string}\" from webpage."
webpage_output=$(echo "${run_cmd_output}" | \grep -Po -m 1 "${2}")
debug "Got \"${webpage_output}\" from webpage."
}
if [[ ${scraped_string} != "$3" ]]; then
error "Checking '$1' expected '$3' got '${scraped_string}'"
check_webpage() {
# $1: The url to scrape
# $2: The Perl regex to match with
# $3: Expect match
if ! get_webpage "$1" "$2"; then
return $?
fi
debug "Expecting: $3"
if [[ ${webpage_output} != "$3" ]]; then
error "Checking '$1' expected '$3' got '${webpage_return}'"
debug "Returning 1 from check_webpage()"
return 1
fi
@ -501,17 +511,15 @@ check_result() {
}
check_linux_vfio() {
get_linux_vfio_kernel_version() {
#
# Check linux-vfio kernel version (this will change when the linux-vfio is updated)
# Get linux-vfio kernel version (this will change when the linux-vfio is updated)
#
if ! source ${script_dir}/src/kernels/linux-vfio.sh; then
echo "!! ERROR !! -- Could not load ${script_dir}/src/kernels/linux-vfio.sh!"
exit 155
msg "Checking linux-vfio download page for the latest linux kernel version..."
if ! get_webpage "https://aur.archlinux.org/packages/linux-vfio" "(?<=linux-vfio )[\d\.-]+"; then
exit 1
fi
msg "Checking linux-vfio download page for linux kernel version changes..."
check_webpage "https://aur.archlinux.org/packages/linux-vfio" "(?<=linux-vfio )[\d\.]+" "${kernel_version::-2}"
check_result "linux-vfio kernel version" "linux-vfio" "$?"
latest_kernel_version=${webpage_output}
}
@ -529,58 +537,50 @@ check_archiso() {
}
check_linux_hardened_kernel() {
get_linux_hardened_kernel_version() {
#
# Check x86_64 linux-hardened kernel version
# Get x86_64 linux-hardened kernel version
#
if ! source ${script_dir}/src/kernels/linux-hardened.sh; then
echo "!! ERROR !! -- Could not load ${script_dir}/src/kernels/linux-hardened.sh!"
exit 155
msg "Checking the online package database for the latest x86_64 linux-hardened kernel version..."
if ! get_webpage "https://www.archlinux.org/packages/extra/x86_64/linux-hardened/" "(?<=<h2>linux-hardened )[\d\w\.-]+(?=</h2>)"; then
exit 1
fi
msg "Checking the online package database for x86_64 linux-hardened kernel version changes..."
check_webpage "https://www.archlinux.org/packages/extra/x86_64/linux-hardened/" "(?<=<h2>linux-hardened )[\d\w\.-]+(?=</h2>)" "${kernel_version}"
check_result "x86_64 linux-hardened kernel package" "linux-hardened x86_64" "$?"
latest_kernel_version=${webpage_output}
}
check_linux_zen_kernel() {
get_linux_zen_kernel_version() {
#
# Check x86_64 linux-hardened kernel version
#
if ! source ${script_dir}/src/kernels/linux-zen.sh; then
echo "!! ERROR !! -- Could not load ${script_dir}/src/kernels/linux-zen.sh!"
exit 155
msg "Checking the online package database for the latest x86_64 linux-zen kernel version..."
if ! get_webpage "https://www.archlinux.org/packages/extra/x86_64/linux-zen/" "(?<=<h2>linux-zen )[\d\w\.-]+(?=</h2>)"; then
exit 1
fi
msg "Checking the online package database for x86_64 linux-zen kernel version changes..."
check_webpage "https://www.archlinux.org/packages/extra/x86_64/linux-zen/" "(?<=<h2>linux-zen )[\d\w\.-]+(?=</h2>)" "${kernel_version}"
check_result "x86_64 linux-zen kernel package" "linux-zen x86_64" "$?"
latest_kernel_version=${webpage_output}
}
check_linux_kernel() {
get_linux_kernel_version() {
#
# Check x86_64 linux kernel version
#
if ! source ${script_dir}/src/kernels/linux.sh; then
echo "!! ERROR !! -- Could not load ${script_dir}/src/kernels/linux.sh!"
exit 155
msg "Checking the online package database for the latest x86_64 linux kernel version..."
if ! get_webpage "https://www.archlinux.org/packages/core/x86_64/linux/" "(?<=<h2>linux )[\d\.-]+(?=</h2>)"; then
exit 1
fi
msg "Checking the online package database for x86_64 linux kernel version changes..."
check_webpage "https://www.archlinux.org/packages/core/x86_64/linux/" "(?<=<h2>linux )[\d\.-]+(?=</h2>)" "${kernel_version}"
check_result "x86_64 linux kernel package" "linux x86_64" "$?"
latest_kernel_version=${webpage_output}
}
check_linux_lts_kernel() {
get_linux_lts_kernel_version() {
#
# Check x86_64 linux-lts kernel version
#
if ! source ${script_dir}/src/kernels/linux-lts.sh; then
echo "!! ERROR !! -- Could not load ${script_dir}/src/kernels/linux-lts.sh!"
exit 155
msg "Checking the online package database for the latest x86_64 linux-lts kernel version..."
if ! get_webpage "https://www.archlinux.org/packages/core/x86_64/linux-lts/" "(?<=<h2>linux-lts )[\d\.-]+(?=</h2>)"; then
exit 1
fi
msg "Checking the online package database for x86_64 linux-lts kernel version changes..."
check_webpage "https://www.archlinux.org/packages/core/x86_64/linux-lts/" "(?<=<h2>linux-lts )[\d\.-]+(?=</h2>)" "${kernel_version}"
check_result "x86_64 linux-lts kernel package" "linux-lts x86_64" "$?"
latest_kernel_version=${webpage_output}
}
@ -878,24 +878,32 @@ git_check_repo() {
reponame="zfs"
fi
local repopath="${script_dir}/packages/${kernel_name}/${pkg}/${reponame}"
local temprepopath="${script_dir}/temp/${reponame}"
debug "GIT URL: ${url}"
debug "GIT REPO: ${repopath}"
if [[ ! -d "${repopath}" ]]; then
msg2 "Cloning repo '${repopath}'"
run_cmd_no_dry_run "git clone --mirror '${url}' '${repopath}'"
if [[ ${run_cmd_return} -ne 0 ]]; then
error "Failure while cloning ${url} repo"
exit 1
fi
else
msg2 "Updating repo '${repopath}'"
run_cmd_no_dry_run "cd ${repopath} && git fetch --all -p"
if [[ ${run_cmd_return} -ne 0 ]]; then
error "Failure while fetching ${url} repo"
exit 1
# clone into temp directory
if [[ ! -d "${temprepopath}" ]]; then
run_cmd_no_dry_run "git clone --mirror '${url}' '${temprepopath}'"
if [[ ${run_cmd_return} -ne 0 ]]; then
error "Failure while cloning ${url} repo"
exit 1
fi
fi
# copy into package directory from temp
run_cmd_no_dry_run "cp -r '${temprepopath}' '${repopath}'"
fi
msg2 "Updating repo '${repopath}'"
run_cmd_no_dry_run "cd ${repopath} && git fetch --all -p"
if [[ ${run_cmd_return} -ne 0 ]]; then
error "Failure while fetching ${url} repo"
exit 1
fi
done
}
@ -921,16 +929,16 @@ git_calc_pkgver() {
# Checkout the git repo to a work directory
local cmd="/usr/bin/bash -s << EOF 2>/dev/null\\n"
cmd+="[[ -d temp ]] && rm -r temp\\n"
cmd+="mkdir temp && cd temp\\n"
cmd+="git clone ../packages/${kernel_name}/${pkg}/${repo} && cd ${repo}\\n"
cmd+="[[ -d temp/version ]] && rm -r temp/version\\n"
cmd+="mkdir temp/version && cd temp/version\\n"
cmd+="git clone ../../packages/${kernel_name}/${pkg}/${repo} && cd ${repo}\\n"
cmd+="git checkout -b azb ${sha}\\n"
cmd+="EOF"
run_cmd_no_output_no_dry_run "${cmd}"
# Get the version number past the last tag
msg2 "Calculating PKGVER"
cmd="cd temp/${repo} && "
cmd="cd temp/version/${repo} && "
cmd+='printf "%s.r%s.g%s" "$(git log -n 1 --pretty=format:"%cd" --date=short | sed "s/-/./g")" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"'
run_cmd_no_output_no_dry_run "${cmd}"
@ -956,7 +964,7 @@ git_calc_pkgver() {
fi
# get latest commit sha
cmd="cd temp/${repo} && "
cmd="cd temp/version/${repo} && "
cmd+="git rev-parse HEAD"
run_cmd_no_output_no_dry_run "${cmd}"
if [[ ${repo} =~ ^zfs ]]; then
@ -967,6 +975,6 @@ git_calc_pkgver() {
# Cleanup
msg2 "Removing working directory"
run_cmd_no_output_no_dry_run "rm -vrf temp"
run_cmd_no_output_no_dry_run "rm -vrf temp/version"
done
}

@ -12,6 +12,7 @@ script_name=$(basename $0)
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
push=0
push_repo=0
push_testing_repo=0
if ! source ${script_dir}/lib.sh; then
@ -32,6 +33,7 @@ usage() {
echo " -n: Dryrun; Output commands, but don't do anything."
echo " -d: Show debug info."
echo " -r: Push the archzfs repositories."
echo " -t: Push the archzfs testing repositories."
echo " -p: Commit changes and push."
echo
echo "Modes:"
@ -73,6 +75,8 @@ for (( a = 0; a < $#; a++ )); do
push=1
elif [[ ${args[$a]} == "-r" ]]; then
push_repo=1
elif [[ ${args[$a]} == "-t" ]]; then
push_testing_repo=1
elif [[ ${args[$a]} == "-h" ]]; then
usage
else
@ -82,7 +86,7 @@ for (( a = 0; a < $#; a++ )); do
done
if [[ ${#modes[@]} -eq 0 && ${push_repo} -eq 0 ]]; then
if [[ ${#modes[@]} -eq 0 && ${push_repo} -eq 0 && ${push_testing_repo} -eq 0 ]]; then
echo
error "A mode must be selected!"
usage
@ -106,17 +110,20 @@ push_packages() {
local cmd="cd \"${script_dir}/packages/${kernel_name}/${pkg}\" && "
if [[ ${push} -eq 1 ]]; then
vers=""
if [[ ! -z ${kernel_version_full} ]]; then
vers=$(kernel_version_full_no_hyphen ${kernel_version_full})-${zfs_pkgrel}
elif [[ ! -z ${zfs_pkgver} ]]; then
vers=$zfs_pkgver
vers="kernel ${kernel_version_full} + "
fi
if [[ ! -z ${zfs_pkgver} ]]; then
vers+="zfs ${zol_version}"
else
vers="latest git commit"
vers+="latest git commit"
fi
cmd+="git --no-pager diff && echo && echo && git checkout master && git add . && "
cmd+="git commit -m 'Semi-automated update for $vers'; git push"
cmd+="git commit -m 'Automated update for $vers'; git push"
else
cmd+="git --no-pager diff"
fi
@ -131,12 +138,23 @@ push_repo() {
elif [[ ${push_repo} -ne 1 ]]; then
return
fi
run_cmd "rsync -vrtlh --delete-before ${repo_basepath}/${repo_name} ${package_backup_dir} webfaction:/home/jalvarez/webapps/default/ ${dry}"
run_cmd_check 1 "Could not push packages to webfaction!"
run_cmd "rsync -vrtlh --delete-before ${repo_basepath}/${repo_basename} ${repo_basepath}/archive_${repo_basename} ${remote_login}:${repo_remote_basepath}/ ${dry}"
run_cmd_check 1 "Could not push packages to remote repo!"
}
push_testing_repo() {
if [[ ${dry_run} -eq 1 ]]; then
dry="-n"
elif [[ ${push_testing_repo} -ne 1 ]]; then
return
fi
run_cmd "rsync -vrtlh --delete-before ${repo_basepath}/${repo_basename}-testing ${repo_basepath}/archive_${repo_basename}-testing ${remote_login}:${repo_remote_basepath}/ ${dry}"
run_cmd_check 1 "Could not push packages to remote testing repo!"
}
push_repo
push_testing_repo
if [[ ${#modes[@]} -eq 0 ]]; then
exit
fi

@ -35,6 +35,7 @@ usage() {
echo " -n: Dryrun; Output commands, but don't do anything."
echo " -d: Show debug info."
echo " -s: Sign packages only."
echo " -p: Do not sync from remote repo."
echo
echo "Modes:"
echo
@ -73,15 +74,19 @@ fi
for (( a = 0; a < $#; a++ )); do
if [[ ${args[$a]} == "azfs" ]]; then
repo_name="archzfs"
repo_name=${repo_basename}
pull_remote_repo=1
elif [[ ${args[$a]} == "test" ]]; then
repo_name="archzfs-testing"
repo_name="${repo_basename}-testing"
pull_remote_testing_repo=1
elif [[ ${args[$a]} =~ repo=(.*) ]]; then
repo_name=${BASH_REMATCH[1]}
elif [[ ${args[$a]} == "ccm" ]]; then
repo_name="clean-chroot-manager"
elif [[ ${args[$a]} == "-s" ]]; then
sign_packages=1
elif [[ ${args[$a]} == "-p" ]]; then
no_pull_remote=1
elif [[ ${args[$a]} == "-n" ]]; then
dry_run=1
elif [[ ${args[$a]} == "-d" ]]; then
@ -94,6 +99,8 @@ for (( a = 0; a < $#; a++ )); do
fi
done
package_backup_dir="${repo_basepath}/archive_${repo_name}"
if [[ $# -lt 1 ]]; then
usage
@ -112,6 +119,23 @@ if [[ ${repo_name} == "" ]]; then
exit 155
fi
pull_repo() {
msg "Downloading remote repo..."
if [[ ${dry_run} -eq 1 ]]; then
dry="-n"
fi
run_cmd "rsync -vrtlh --delete-before ${remote_login}:${repo_remote_basepath}/${repo_name} ${remote_login}:${repo_remote_basepath}/archive_${repo_basename} ${repo_basepath}/ ${dry}"
run_cmd_check 1 "Could not pull packages from remote repo!"
}
pull_testing_repo() {
msg "Downloading remote testing repo..."
if [[ ${dry_run} -eq 1 ]]; then
dry="-n"
fi
run_cmd "rsync -vrtlh --delete-before ${remote_login}:${repo_remote_basepath}/${repo_basename}-testing ${remote_login}:${repo_remote_basepath}/archive_${repo_basename}-testing ${repo_basepath}/ ${dry}"
run_cmd_check 1 "Could not pull packages from remote testing repo!"
}
repo_package_list() {
msg "Generating a list of packages to add..."
@ -348,7 +372,12 @@ sign_packages() {
if [[ ! -f "${pkgp}.sig" ]]; then
msg2 "Signing ${pkgp}"
# GPG_TTY prevents "gpg: signing failed: Inappropriate ioctl for device"
run_cmd_no_output "GPG_TTY=$(tty) gpg --batch --yes --detach-sign --use-agent -u ${gpg_sign_key} \"${script_dir}/${pkgp}\""
if [[ "$(tty)" == "not a tty" ]]; then
tty=""
else
tty="GPG_TTY=$(tty) "
fi
run_cmd_no_output "${tty}gpg --batch --yes --detach-sign --use-agent -u ${gpg_sign_key} \"${script_dir}/${pkgp}\""
if [[ ${run_cmd_return} -ne 0 ]]; then
exit 1
fi
@ -376,6 +405,13 @@ fi
debug "repo_name: ${repo_name}"
debug "repo_target: ${repo_target}"
if [[ ${pull_remote_repo} -eq 1 ]] && [[ ${no_pull_remote} -ne 1 ]]; then
pull_repo
fi
if [[ ${pull_remote_testing_repo} -eq 1 ]] && [[ ${no_pull_remote} -ne 1 ]]; then
pull_testing_repo
fi
if [[ ${sign_packages} -eq 1 ]]; then
for (( i = 0; i < ${#modes[@]}; i++ )); do
mode=${modes[i]}

@ -77,12 +77,7 @@ debug_print_default_vars
export script_dir mode kernel_name
check_linux_zen_kernel
check_linux_hardened_kernel
check_linux_kernel
check_linux_lts_kernel
check_zol_version
check_linux_vfio
check_archiso

@ -3,13 +3,11 @@ mode_name="hardened"
package_base="linux-hardened"
mode_desc="Select and use the packages for the linux-hardened kernel"
# Kernel versions for hardened packages
# pkgrel for hardened packages
pkgrel="1"
kernel_version="4.17.3.a-1"
# Kernel version for GIT packages
# pkgrel for GIT packages
pkgrel_git="${pkgrel}"
kernel_version_git="${kernel_version}"
zfs_git_commit=""
spl_git_commit=""
zfs_git_url="https://github.com/zfsonlinux/zfs.git"
@ -35,6 +33,9 @@ header="\
#"
update_linux_hardened_pkgbuilds() {
get_linux_hardened_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("spl-linux-hardened" "zfs-linux-hardened")
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
@ -63,8 +64,10 @@ update_linux_hardened_pkgbuilds() {
}
update_linux_hardened_git_pkgbuilds() {
get_linux_hardened_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("zfs-linux-hardened-git")
kernel_version=${kernel_version_git}
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
kernel_version_major=${kernel_version%-*}

@ -3,13 +3,11 @@ mode_name="lts"
package_base="linux-lts"
mode_desc="Select and use the packages for the linux-lts kernel"
# Kernel versions for LTS packages
# pkgrel for LTS packages
pkgrel="1"
kernel_version="4.14.52-1"
# Kernel version for GIT packages
# pkgrel for GIT packages
pkgrel_git="${pkgrel}"
kernel_version_git="${kernel_version}"
zfs_git_commit=""
spl_git_commit=""
zfs_git_url="https://github.com/zfsonlinux/zfs.git"
@ -35,6 +33,9 @@ header="\
#"
update_linux_lts_pkgbuilds() {
get_linux_lts_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("spl-linux-lts" "zfs-linux-lts")
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
@ -64,8 +65,10 @@ update_linux_lts_pkgbuilds() {
}
update_linux_lts_git_pkgbuilds() {
get_linux_lts_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("zfs-linux-lts-git")
kernel_version=${kernel_version_git}
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
kernel_version_major=${kernel_version%-*}

@ -3,13 +3,11 @@ mode_name="vfio"
package_base="linux-vfio"
mode_desc="Select and use the packages for the linux-vfio kernel"
# Kernel versions for default ZFS packages
# pkgrel for vfio packages
pkgrel="1"
kernel_version="4.17.2-1"
# Kernel version for GIT packages
# pkgrel for GIT packages
pkgrel_git="${pkgrel}"
kernel_version_git="${kernel_version}"
zfs_git_commit=""
spl_git_commit=""
zfs_git_url="https://github.com/zfsonlinux/zfs.git"
@ -34,6 +32,9 @@ header="\
#"
update_linux_pkgbuilds() {
get_linux_vfio_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("spl-linux-vfio" "zfs-linux-vfio")
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
@ -63,8 +64,10 @@ update_linux_pkgbuilds() {
}
update_linux_git_pkgbuilds() {
get_linux_vfio_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("zfs-linux-vfio-git")
kernel_version=${kernel_version_git}
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
kernel_version_major=${kernel_version%-*}

@ -3,13 +3,11 @@ mode_name="zen"
package_base="linux-zen"
mode_desc="Select and use the packages for the linux-zen kernel"
# Kernel versions for default ZFS packages
# pkgrel for ZEN packages
pkgrel="1"
kernel_version="4.17.2-1"
# Kernel version for GIT packages
# pkgrel for GIT packages
pkgrel_git="${pkgrel}"
kernel_version_git="${kernel_version}"
zfs_git_commit=""
spl_git_commit=""
zfs_git_url="https://github.com/zfsonlinux/zfs.git"
@ -34,6 +32,9 @@ header="\
#"
update_linux_pkgbuilds() {
get_linux_zen_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("spl-linux-zen" "zfs-linux-zen")
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
@ -63,8 +64,10 @@ update_linux_pkgbuilds() {
}
update_linux_git_pkgbuilds() {
get_linux_zen_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("zfs-linux-zen-git")
kernel_version=${kernel_version_git}
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
kernel_version_major=${kernel_version%-*}

@ -3,13 +3,11 @@ mode_name="std"
package_base="linux"
mode_desc="Select and use the packages for the default linux kernel"
# Kernel versions for default ZFS packages
# pkgrel for default ZFS packages
pkgrel="1"
kernel_version="4.17.2-1"
# Kernel version for GIT packages
# pkgrel for GIT packages
pkgrel_git="${pkgrel}"
kernel_version_git="${kernel_version}"
zfs_git_commit=""
spl_git_commit=""
zfs_git_url="https://github.com/zfsonlinux/zfs.git"
@ -34,6 +32,9 @@ header="\
#"
update_linux_pkgbuilds() {
get_linux_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("spl-linux" "zfs-linux")
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
@ -65,8 +66,10 @@ update_linux_pkgbuilds() {
}
update_linux_git_pkgbuilds() {
get_linux_kernel_version
kernel_version=${latest_kernel_version}
pkg_list=("zfs-linux-git")
kernel_version=${kernel_version_git}
kernel_version_full=$(kernel_version_full ${kernel_version})
kernel_version_full_pkgver=$(kernel_version_full_no_hyphen ${kernel_version})
kernel_version_major=${kernel_version%-*}

3
temp/.gitignore vendored

@ -0,0 +1,3 @@
# Ignore everything except .gitingore
*
!.gitignore

@ -62,7 +62,7 @@ compute_remote_repo_hash() {
# $1: The repository to compute
# Sets remote_repo_hash
msg2 "Computing remote $1 repository hashes..."
run_cmd_show_and_capture_output "ssh ${remote_login} 'cd webapps/default; sha256sum $1/*/*' | sort"
run_cmd_show_and_capture_output "ssh ${remote_login} 'cd ${repo_remote_basepath}/; sha256sum $1/*/*' | sort"
if [[ ${run_cmd_return} != 0 ]]; then
error "Could not run remote hash!"
exit 1

Loading…
Cancel
Save