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

Bug#783074: flash-kernel: improvements to uboot-generic bootscript



On Mon, 2015-05-04 at 12:01 -0700, Vagrant Cascadian wrote:
> >> The kernel versioning its also make it possible to use a kernel without
> >> relying on the various vmlinuz, initrd, dtb smlinks being valid, or for
> >> troubleshooting an alternate version.
> >
> > What do you think about wrapping the load in a "for kver in -${kvers '';
> > do" and loading e.g. ${prefix}vmlinuz${kver}. IOW making it so that it
> > will try the suffixed version first but fallback to the symlinks if that
> > fails?
> 
> I like the idea, but the for loop implementation seems to ignore '', "",
> ' ' or " " in the loop... I'm not sure how to get it to respect an empty
> value.

In the end I'm going to go with just duplicating the entire block with
and without the kvers, which is a bit unsatisfactory but the best I
could manage with the syntax available.

I'm also planning to use:
        if test -n "${fk_kvers}"; then
           fk_kvers='@@KERNEL_VERSION@@'
        fi
(and then fk_kvers throughout)

Which should allow for a very rudimentary form of picking which kernel
you wanted by "setenv fk_kvers FOO; boot" (e.g. to boot older versions
in an emergency).

Ian.


Reply to: