X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-dkms_post-build.sh;h=a2f785de8ac1147e7e027fa49bfd9d3a2010d48c;hb=807b5650dc3287252894810d1761ec171e93d307;hp=6ed20c7a6d0be5c16b9ec30db462a27c9eba8859;hpb=c99e8035ea543860f6db5e9919ff0045b56d1835;p=fs%2Flustre-release.git diff --git a/lustre-dkms_post-build.sh b/lustre-dkms_post-build.sh index 6ed20c7..a2f785d 100755 --- a/lustre-dkms_post-build.sh +++ b/lustre-dkms_post-build.sh @@ -1,4 +1,15 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0 + +# +# This file is part of Lustre, http://www.lustre.org/ +# +# lustre-dkms_post-build.sh +# +# Script run after dkms build +# + +# # $1 : $module # $2 : $module_version # $3 : $kernelver @@ -15,13 +26,30 @@ # beginning of the DKMS build step when its content has to be on-target # customized during pre_build script. This can lead to incomplete list # of built Lustre kernel modules then to be saved for next DKMS install step. +# +# # Use this place to also save config.log that has been generated during # pre_build. # $7/$1/$2/$3/$5/log repository should have already been created to save # make.log and $kernel_config +# + mkdir -p "$7/$1/$2/$3/$5/log" cp -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null cp -f "$7/$1/$2/build/config.h" \ "$7/$1/$2/build/Module.symvers" \ "$7/$1/$2/$3/$5/" 2> /dev/null + +case $1 in + lustre-zfs|lustre-all) + # To satisfy the content of lustre-osd-zfs-mount install these scripts: + for script in statechange-lustre.sh \ + vdev_attach-lustre.sh \ + vdev_clear-lustre.sh \ + vdev_remove-lustre.sh + do + install -D -m 0755 lustre/scripts/${script} /etc/zfs/zed.d/${script} + done + ;; +esac