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

Bug#600937: Please disable /etc/kernel postinst hook if the target kernel is non-modular



tags 600937 -patch
stop

On Thu, 21 Oct 2010, Guido Trotter wrote:

> +# don't run on a non-modular kernel
> +if [ -f "/boot/config-$version" ]; then
> +	if grep -vq "CONFIG_MODULES=y" /boot/config-$version; then
> +		exit 0
> +	fi
> +fi
> +

no you cannot be shure that aboves config relates to
the initramfs you built.

beside beeing the wrong place to fix as vorlon pointed out.

thanks.

-- 
maks



Reply to: