On Wed, 2010-10-13 at 03:13 -0300, Lucas Meneghel Rodrigues wrote:
> On Tue, 2010-10-12 at 11:32 -0300, Lucas Meneghel Rodrigues wrote:
> > The method used to set boot once with grub doesn't work for some
> > distros, such as Red Hat based ones. After some research, discovered
> > a method that is expected to work with grub from version 0.97 forward
> > even for Red Hat based systems.
> > 
> > TODO: I still need to test this method with other Linux distros
> > such as Debian/Ubuntu. It *should*, but you never know. I am sending
> > it anyway so the idea can be evaluated.
> 
> Ok, just found out that:
> 
>  * The method I've proposed doesn't work under debian.
>  * For opensuse, it doesn't either. Apparently you're supposed to call
> 'grubonce' to set the once boot kernel.
>  * Recent Ubuntu uses grub2 so anyone using autotest under recent ubuntu
> to test kernels is out of luck, since boottool doesn't support grub2.
> 
> What a nightmare.
> 
> So for a short term solution, what about in the wrapper class of
> boottool, in the method boot_once(), verify what is the os vendor, if it
> is Red Hat or Fedora we execute
> 
> echo "savedefault --default=$entry_to_boot_once --once" | grub --batch
> 
> on the wrapper class itself, without resorting to calling boottool to do
> the actual work? This way we'd support both Red Hat and other distros,
> since for non-red hat systems boottool would be executed.

Ok, just did that, tested, it works. The patch I sent supersedes this
one, and that is what I'm going to mark on patchwork.


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to