Gentoo Archives: gentoo-user-br

From: "Benigno B. Junior" <bbj@××××××××××.br>
To: gentoo-user-br@l.g.o
Subject: [gentoo-user-br] "reboot on panic" para imagem antiga, com grub e/ou lilo
Date: Tue, 21 Feb 2006 20:03:28
Message-Id: 20060221170219.08e8ea2d@phanty
1 O nosso amigo Rodrigo deseja o seguinte: ele possui um servidor, no qual possui APENAS acesso remoto; sendo assim, ele gostaria de voltar com a imagem anterior do kernel em caso de "kernel panic" da nova imagem.
2
3 De acordo com a URL passada pelo Jeronimo, "http://www.gnu.org/software/grub/manual/html_node/Booting-once_002donly.html#Booting-once_002donly", deve-se ainda adicionar o "panic" parâmetro, ficando desta maneira:
4
5 default saved # This is important!!!
6 timeout 10
7
8 title the old kernel
9 root (hd0,0)
10 kernel /old_kernel [parâmetros]
11 savedefault
12
13 title the new kernel
14 root (hd0,0)
15 kernel /new_kernel [parâmetros panic=5] # <----- parâmetro para "reboot" em 5 segundos
16 savedefault 0 # This is important!!!
17
18 Em caso de sucesso:
19 "The next step is to tell GRUB to boot the new kernel at next boot time. For this, execute grub-set-default (see Invoking grub-set-default):
20
21 # grub-set-default 1
22
23 This command sets the saved entry to `1', that is, to the new kernel."
24
25 --
26 Benigno B. Junior - http://dev.gentoo.org/~bbj/
27 Developer for: Gentoo/NetBSD (lead), Gentoo/ALT, Catalyst for *BSD
28 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3995B21

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user-br] "reboot on panic" para imagem antiga, com grub e/ou lilo "Benigno B. Junior" <bbj@××××××××××.br>