[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638878: linux-image-3.0.0-1-amd64: Maybe report Debian kernel version with uname



Ben Hutchings wrote:

> --- a/scripts/mkcompile_h
> +++ b/scripts/mkcompile_h
> @@ -58,6 +58,13 @@
>  if [ -n "$SMP" ] ; then CONFIG_FLAGS="SMP"; fi
>  if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi
>  UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP"
> +
> +DISTRIBUTION=$(lsb_release -is 2>/dev/null)
> +DISTRIBUTION=${DISTRIBUTION:-Debian}
> +
> +if [ "$DISTRIBUTION_OFFICIAL_BUILD" ]; then
> +  UTS_VERSION="#0 $DISTRIBUTION $DISTRIBUTION_VERSION"
> +fi
>  
>  # Truncate to maximum length

Thanks.  Looks good to me, for what it's worth.



Reply to: