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

Re: setting a list of kernels to try in boot.conf



From: "Stoyan Genov" <stoyan.genov@sun-fish.com>
> Hi,
> 
> On an obsd/3.4 i386 (though arch might not be relevant),
> I have the need to boot several customly-named kernels
> in custom locations, in the manner boot(8) will try to boot
> /bsd, /obsd and /bsd.old (that is, try to boot /bsd, if fail
> try to boot /obsd, if fail try to boot /bsd.old)
> 
> Looking at boot(8) and /usr/src/sys/stand/boot/boot.c, it seems
> one can set only one custom location and name of the kernel file
> via ``set image'' in /etc/boot.conf .
> 
> So, questions:
> 1) Does a way to set several custom locations exist?

would:

boot /my/kernel1
boot /my/kernel2
boot /your/kernel/whatever

in /etc/boot.conf work? Still, if so, you wouldn't get that fancy
prompt...

> 2) If 1) is false, do you think it's worth implementing this
>     feature -- something like ``set image /my/kernel/1 /other/kernels/2''
> 
> Best Regards,
> Stoyan Genov

/Alexander