mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-08-26 04:32:21 +00:00

Enforce `set -e` execution of the dkms-build scripts, even when overall SHELL is not set to `bash -e`. This enforces that dkms-build scripts catch errors, even when building without SHELL variable, like it is done by the LRM packages. Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Acked-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
25 lines
493 B
Bash
Executable File
25 lines
493 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
srcdir="$1"
|
|
dkms_conf="$2"
|
|
shift 2
|
|
|
|
dkms_dir="$1"
|
|
abi_flavour="$2"
|
|
sign="$3"
|
|
pkgname="$4"
|
|
pkgdir="$5"
|
|
dbgpkgdir="$6"
|
|
package="$7"
|
|
shift 7
|
|
|
|
# ZFS debug symbols are enabled in dkms.conf via PACKAGE_CONFIG file.
|
|
if [ -n "$dbgpkgdir" ]; then
|
|
echo "enable zfs debug symbols"
|
|
pkg_cfg="$(dirname "$dkms_conf")/pkg_cfg"
|
|
echo 'ZFS_DKMS_ENABLE_DEBUGINFO=yes' >"$pkg_cfg"
|
|
echo 'ZFS_DKMS_DISABLE_STRIP=yes' >>"$pkg_cfg"
|
|
sed -i "s,^\(PACKAGE_CONFIG=\).*,\1$pkg_cfg," $dkms_conf
|
|
fi
|