Re: [CentOS] One-time reboot into alternate kernel?

2014-12-18 Thread Gordon Messmer

On 12/15/2014 03:01 AM, Tony Mountifield wrote:

Is there a way to reboot temporarily into one of the other kernels listed
in grub.conf, without changing the default= line, so that a subsequent
reboot will default back to the original kernel?


Use grub2-reboot.  There's no man page, but --help will display usage.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One-time reboot into alternate kernel?

2014-12-16 Thread Tony Mountifield
In article 20141215113303.e0ae4a00...@mail.centos.org,
Rushton Martin jmrush...@qinetiq.com wrote:
 If you are using GRUB 0.97 (legacy GRUB), then this capability is
 provided by the default saved and fallback commands.  See sections
 4.3.1 and 4.3.2 in the manual:
 
 http://www.gnu.org/software/grub/manual/legacy/grub.html

Excellent - just what I was looking for. Thanks!

Tony

 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
 Behalf Of Tony Mountifield
 Sent: 15 December 2014 11:01
 To: centos@centos.org
 Subject: [CentOS] One-time reboot into alternate kernel?
 
 Apologies if this should be well-known, but I couldn't find anything!
 
 Situation: a system in a remote location, with no KVM, IPMI or iLO, and
 therefore no console access, only ssh. Multiple kernels listed in
 grub.conf.
 
 Is there a way to reboot temporarily into one of the other kernels
 listed in grub.conf, without changing the default= line, so that a
 subsequent reboot will default back to the original kernel?
 
 The problem I have is that having changed the default= line to select a
 kernel that doesn't boot properly, I need to have someone visit the
 console in order manually to select the working kernel again. I would
 like to avoid that situation if possible.
 
 Thanks,
 Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos