summaryrefslogtreecommitdiffstats
path: root/builder/build-initramfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-xbuilder/build-initramfs.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh
index 3606eed0..3b03592d 100755
--- a/builder/build-initramfs.sh
+++ b/builder/build-initramfs.sh
@@ -24,7 +24,7 @@
declare -rg _root_dir="$(readlink -f $(dirname ${BASH_SOURCE[0]}))"
declare -rg _repo_dir="${_root_dir}/systemd-init.git"
declare -rg _git_source="git://git.openslx.org/openslx-ng/systemd-init.git"
-declare -rg _git_branch="master"
+declare -rg _git_branch="centos7-fix"
## region ensure presence of needed dependencies
set -o errexit
if [ ! -e "$_repo_dir" ]; then
@@ -44,13 +44,13 @@ if [ ! -e "$_repo_dir" ]; then
path="$(git config -f .gitmodules --get submodule.${mod}.path)"
branch="$(git config -f .gitmodules --get submodule.${mod}.branch)"
commit="$(git submodule status $path | grep -oE '[0-9a-f]{40}')"
- depth_arg=("--shallow-since")
- [ "$mod" = "dnbd3" ] && depth_arg+=("2019-02-12")
- [ "$mod" = "rebash" ] && depth_arg+=("2016-11-30")
- [ "$mod" = "qemu-xmount" ] && depth_arg+=("2016-01-01")
- [ "$mod" = "xmount" ] && depth_arg+=("2015-11-05")
- [ "$mod" = "kernel-qcow2-linux" ] && depth_arg+=("2019-08-25")
- [ "$mod" = "kernel-qcow2-util-linux" ] && depth_arg+=("2019-08-15")
+ # depth_arg=("--shallow-since")
+ # [ "$mod" = "dnbd3" ] && depth_arg+=("2019-02-12")
+ # [ "$mod" = "rebash" ] && depth_arg+=("2016-11-30")
+ # [ "$mod" = "qemu-xmount" ] && depth_arg+=("2016-01-01")
+ # [ "$mod" = "xmount" ] && depth_arg+=("2015-11-05")
+ [ "$mod" = "kernel-qcow2-linux" ] && continue
+ [ "$mod" = "kernel-qcow2-util-linux" ] && continue
git clone --no-checkout "${depth_arg[@]}" --branch "$branch" "$url" "$path"
pushd "$path"
git checkout "$commit"
@@ -572,7 +572,10 @@ main() {
logging.critical 'Missing core dependency "linux-headers" for version to compile against given or current kernel.'
fi
logging.info " * kernel headers: $kernel_headers"
- [ -n "$qcow_handler" ] && logging.info " * qcow2 handler: $qcow_handler"
+ if [ -n "$qcow_handler" ]; then
+ logging.info " * qcow2 handler: $qcow_handler"
+ export qcow_handler
+ fi
# endregion
# region handle '--update' to update all the modules in 'modules.d'