Whamcloud - gitweb
LU-16059 build: Installation of dkms server builds
[fs/lustre-release.git] / lustre-dkms_post-build.sh
index 6ed20c7..70c8302 100755 (executable)
@@ -25,3 +25,16 @@ 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