Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <contact@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Safe way to test a new kernel?
Date: Sun, 26 Feb 2012 15:22:50
Message-Id: 4F4A4DA2.20608@nileshgr.com
In Reply to: Re: [gentoo-user] Re: Safe way to test a new kernel? by Grant
1 On Sun 26 Feb 2012 08:05:23 PM IST, Grant wrote:
2 >>> I get "Unrecognized command" from savedefault in grub:
3 >>>
4 >>> grub> savedefault --default=1 --once
5 >>> Error 27: Unrecognized command
6 >>
7 >> Strange. Maybe this is something inofficial, and not every Gurb
8 >> understands this? The documentation does not mention the --default option
9 >> I think.
10 >>
11 >>> I re-emerged grub with /boot mounted and ran grub-install but I get
12 >>> the same error. Does anyone know how to fix this? I'm on
13 >>> grub-0.97-r10.
14 >>
15 >> Have a look at 'info grub', 'Booting' -> 'Making your system robust',
16 >> especially section 4.3.2 'Booting fallback systems'. That's what I used in
17 >> order to test new kernels remotely.
18 >>
19 >> Wonko
20 >
21 > I like that better. Where do you execute 'grub-set-default 0'?
22 >
23 > I did notice this:
24 >
25 > "In some newer versions of GNU/Linux, there is no
26 > /sbin/grub-set-default (eg. Debian 3.1, Fedora Core 4,5). While some
27 > distributions like Gentoo still has /sbin/grub-set-default"
28 >
29 > http://sidvind.com/wiki/GRUB:_Boot_another_OS_once#Method_1_.28preferred.29
30 >
31 > BTW, is there a way to tell which grub entry I'm booted into, or am I
32 > best off examining the contents of /proc/config.gz?
33 >
34 > - Grant
35 >
36
37 uname -r
38
39 If the kernel version is same, add a version string in menuconfig.
40
41 --
42 Nilesh Govindarajan
43 http://nileshgr.com