From: Michael Tokarev <mjt@tls.msk.ru>
To: Ingo Oeser <netdev@axxeo.de>
Cc: Meelis Roos <mroos@linux.ee>,
kernel list <linux-kernel@vger.kernel.org>,
netdev@vger.kernel.org
Subject: Re: Safe remote kernel install howto (Re: [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc))
Date: Fri, 26 May 2006 16:42:25 +0400 [thread overview]
Message-ID: <4476F7B1.20307@tls.msk.ru> (raw)
In-Reply-To: <200605261429.36078.netdev@axxeo.de>
Ingo Oeser wrote:
> Hi Meelis,
>
>> Unfortunatlety, 2.6.15 does not boot on this machine so I'm locked out
>> remotely at the moment.
>
> Here it my paranoid boot setup:
>
> 1. Use "lilo -R new-kernel", to boot a kernel only
> once and reboot the default kernel next time.
>
> 2. Force reboot on any panic after 10 seconds:
> append="panic=10" in /etc/lilo.conf
>
> 3. Schedule automatic reboot in case of impossible login
> echo "/bin/sync; /sbin/reboot -f "|at now + 15min
Instead of this, I usually use a system startup script like this:
case "$(cat /proc/cmdline)" in
*linux-test*)
(sleep 300; [ -f /var/run/noreboot ] || reboot) &
;;
esac
which means that if the kernel image is named 'linux-test', it will
be rebooted in 15 minutes after booting if no /var/run/noreboot file
exist. So if I'm able to log in, i just touch /var/run/noreboot and
be done with it.
And oh, yes, for this to work, in lilo.conf the new entry should be
labeled linux-test -- ie, install new kernel, add new entry into lilo.conf
with label=linux-test, run `lilo && lilo -R linux-test && init 6' and..
wait ;) After successeful reboot (and touching /var/run/noreboot), edit
lilo.conf, restore the proper label, set proper order of entries if needed
and re-run lilo.
/mjt
next prev parent reply other threads:[~2006-05-26 12:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200605251004.k4PA4Lek007751@fire-2.osdl.org>
2006-05-25 14:03 ` [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc) Andrew Morton
2006-05-25 18:52 ` Patrick McHardy
2006-05-25 19:12 ` Meelis Roos
2006-05-25 20:15 ` Meelis Roos
2006-05-26 7:11 ` Meelis Roos
2006-05-26 12:29 ` Safe remote kernel install howto (Re: [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc)) Ingo Oeser
2006-05-26 12:34 ` Meelis Roos
2006-05-31 20:25 ` Bill Davidsen
2006-05-26 12:42 ` Michael Tokarev [this message]
2006-05-26 12:42 ` Andi Kleen
2006-05-26 13:21 ` Ingo Oeser
2006-06-01 7:03 ` [Bugme-new] [Bug 6613] New: iptables broken on 32-bit PReP (ARCH=ppc) Meelis Roos
2006-06-01 17:44 ` Patrick McHardy
2006-06-01 20:50 ` Meelis Roos
2006-06-02 13:08 ` Patrick McHardy
2006-06-02 13:18 ` Meelis Roos
2006-06-02 13:56 ` Patrick McHardy
2006-06-04 12:39 ` Meelis Roos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4476F7B1.20307@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mroos@linux.ee \
--cc=netdev@axxeo.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).