5 # $4 : $kernel_source_dir
10 # This script ensure that ALL Lustre kernel modules that have been built
11 # during DKMS build step of lustre[-client]-dkms module will be moved in
12 # DKMS vault/repository, and this before the build directory content will be
14 # This is required because dkms.conf file is only sourced at the very
15 # beginning of the DKMS build step when its content has to be on-target
16 # customized during pre_build script. This can lead to incomplete list
17 # of built Lustre kernel modules then to be saved for next DKMS install step.
19 # Use this place to also save config.log that has been generated during
21 # $7/$1/$2/$3/$5/log repository should have already been created to save
22 # make.log and $kernel_config
23 mkdir -p "$7/$1/$2/$3/$5/log"
24 cp -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null
25 cp -f "$7/$1/$2/build/config.h" \
26 "$7/$1/$2/build/Module.symvers" \
27 "$7/$1/$2/$3/$5/" 2> /dev/null
30 lustre-zfs|lustre-all)
31 # To satisfy the content of lustre-osd-zfs-mount install these scripts:
32 for script in statechange-lustre.sh \
33 vdev_attach-lustre.sh \
34 vdev_clear-lustre.sh \
37 install -D -m 0755 lustre/scripts/${script} /etc/zfs/zed.d/${script}