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

Bug#254996: [PATCH] smarter selection of the kernel



Hi,

Another option for tuning the pick_kernel function would be to let the
kernel version/flavour to be passed via debconf. For example:

pick_kernel () {

       [...]

       if db_get debian-installer/kernel/version && [ "$RET" ]; then
               version="$RET"
       else
               version=""
       fi

       arch_kernel=$(get_arch_kernel $version)

       [...]

}

get_arch_kernel () {

        if [ "$1" ]; then
           version=$1
        fi

        [...]

	case "$ARCH" in
	i386*)
		if ! [ "$version" ]; then
                   version=$(uname -r | cut -d . -f 1,2) # 2.4 or 2.6
                fi

                [...]
}

Cheers,

Free




Reply to: