Whamcloud - gitweb
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier()
[fs/lustre-release.git] / debian / lustre-client-modules-dkms.postinst
1 #!/bin/bash
2 # SPDX-License-Identifier: NOASSERTION
3
4 #
5 # This file is part of Lustre, http://www.lustre.org/
6 #
7 # debian/lustre-client-module-dkms.postinst
8 #
9 # Script run after Lustre DKMS modules are installed
10 #
11
12 set -e
13
14 # Get the package version
15 package="lustre-client-modules"
16 version="$(dpkg-query -W -f='${Version}' "${package}-dkms" | sed -e 's/-[^-]*$//')"
17
18 dkms add -m "${package}" -v "${version}"
19 dkms build -m "${package}" -v "${version}" && dkms install -m "${package}" -v "${version}" --force || true