summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/dnbd3-rootfs/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-07 14:36:59 +0200
committerJonathan Bauer2018-05-07 14:36:59 +0200
commit407299a9a2bada76edb4d97e2398a2305f015a61 (patch)
tree69972d729c470e064acd8e8c161e78ae0f7e266b /builder/modules.d/dnbd3-rootfs/module-setup.sh
parentsupport patches for submodules (diff)
downloadsystemd-init-407299a9a2bada76edb4d97e2398a2305f015a61.tar.gz
systemd-init-407299a9a2bada76edb4d97e2398a2305f015a61.tar.xz
systemd-init-407299a9a2bada76edb4d97e2398a2305f015a61.zip
[dnbd3-rootfs] add support for configurable kernel
... version to compile dnbd3 against different kernel then the one running. Note, this uses the dracut's internal variable storing the kernel version (specifically '--kver'). This value will be passed to buid_compile_dnbd3 per environment and injected when calling cmake.
Diffstat (limited to 'builder/modules.d/dnbd3-rootfs/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/module-setup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/module-setup.sh b/builder/modules.d/dnbd3-rootfs/module-setup.sh
index 715161bc..759cd476 100755
--- a/builder/modules.d/dnbd3-rootfs/module-setup.sh
+++ b/builder/modules.d/dnbd3-rootfs/module-setup.sh
@@ -113,7 +113,8 @@ check() {
if [[ ! -f "$moddir/binaries/dnbd3/build/dnbd3.ko" ]] || \
[[ ! -f "$moddir/binaries/dnbd3/build/dnbd3-client" ]]
then
- build_compile_dnbd3 "$moddir/binaries/dnbd3/"
+ CMAKE_FLAGS="-DKERNEL_VERSION=${kernel}" \
+ build_compile_dnbd3 "$moddir/binaries/dnbd3/"
[[ $? != 0 ]] && return 1
fi
if [[ ! -f "$moddir/binaries/systemd-preserve-process-marker/systemd-preserve-process-marker" ]]; then