2 # SPDX-License-Identifier: GPL-2.0
5 # This file is part of Lustre, http://www.lustre.org/
7 # lustre-dkms_post-build.sh
9 # Script run after dkms build
14 # $2 : $module_version
16 # $4 : $kernel_source_dir
22 # This script ensure that ALL Lustre kernel modules that have been built
23 # during DKMS build step of lustre[-client]-dkms module will be moved in
24 # DKMS vault/repository, and this before the build directory content will be
26 # This is required because dkms.conf file is only sourced at the very
27 # beginning of the DKMS build step when its content has to be on-target
28 # customized during pre_build script. This can lead to incomplete list
29 # of built Lustre kernel modules then to be saved for next DKMS install step.
33 # Use this place to also save config.log that has been generated during
35 # $7/$1/$2/$3/$5/log repository should have already been created to save
36 # make.log and $kernel_config
39 mkdir -p "$7/$1/$2/$3/$5/log"
40 cp -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null
41 cp -f "$7/$1/$2/build/config.h" \
42 "$7/$1/$2/build/Module.symvers" \
43 "$7/$1/$2/$3/$5/" 2> /dev/null
46 lustre-zfs|lustre-all)
47 # To satisfy the content of lustre-osd-zfs-mount install these scripts:
48 for script in statechange-lustre.sh \
49 vdev_attach-lustre.sh \
50 vdev_clear-lustre.sh \
53 install -D -m 0755 lustre/scripts/${script} /etc/zfs/zed.d/${script}