NACK: [PATCH] UBUNTU: [Packaging] Do not allow update-version-dkms to be run on a derivative kernel

Thadeu Lima de Souza Cascardo cascardo at canonical.com
Thu Mar 4 14:44:40 UTC 2021


On Thu, Mar 04, 2021 at 07:34:01AM -0700, Tim Gardner wrote:
> It is too easy to run this script when drifting through the cranky cheat sheet
> without really thinking about what you're doing while cranking a derivative
> kernel.
> 
> Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
> ---
>  update-version-dkms | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/update-version-dkms b/update-version-dkms
> index d90ce2c85f65..2057f7986fba 100755
> --- a/update-version-dkms
> +++ b/update-version-dkms
> @@ -4,6 +4,11 @@ if [ "$#" -ne 1 ]; then
>  	echo "Usage: $0 <pocket>" 1>&2
>  	exit 1
>  fi
> +if ! grep -q master debian/debian.env; then
> +	echo "Do not run this script on a derivative."
> +	exit 1
> +fi
> +

Some derivatives do not have a parent and should have their dkms updated.

Maybe look at $DEBIAN/etc/update.conf?

Cascardo.

>  pocket="$1"
>  
>  case "$pocket" in
> -- 
> 2.17.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list