New kernel, should be the default

seth vidal skvidal at phy.duke.edu
Sat Oct 9 14:45:31 UTC 2004


> Whether to default to new kernel which can be unwanted in certain
> situations or not is a policy question which doesn't belong to rpm
> level. Doesn't belong to depsolvers either. All we really need is
> something like /etc/sysconfig/kernel where you can put 
> MAKEDEFAULT=yes|no
> and make new-kernel-pkg honor that, eg:
> 
> --- new-kernel-pkg.orig	2004-10-09 16:35:56.000000000 +0300
> +++ new-kernel-pkg	2004-10-09 16:43:37.403284208 +0300
> @@ -22,6 +22,8 @@
>      grubby=/sbin/grubby
>  fi
>  
> +[ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
> +
>  cfgGrub=""
>  cfgLilo=""
>  runLilo=""
> @@ -87,6 +89,8 @@
>  	return
>      fi
>      
> +    [ "$MAKEDEFAULT" = "yes" ] && makedefault="--make-default"
> +    
>      INITRD=""
>      if [ -f $initrdfile ]; then
>  	[ -n "$verbose" ] && echo "found $initrdfile and using it with grubby"

I'd agree here. This is one of the reasons why I've been trying to get
that code out of yum and into user editable modules.

-sv





More information about the fedora-test-list mailing list