~alpine/devel

4 2

[alpine-devel] kernels and booting

Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20110803155309.199dc67e@ncopa-desktop.nor.wtbts.net>
Sender timestamp
1312379589
DKIM signature
missing
Download raw message
Hi,

So now again the update-extlinux called from syslinux trigger script
has caused my box unbootable. Now I want fix this. The question is how?

The problems we want solve is:

* If you upgrade your kernel you should have a fallback alternative in
case new kernel is broken some how.

* Should be possible to pick from a menu.

* If you upgrade the extlinux.conf should pick the newest kernel by
  default.

Previously I have done, install 2 kernels, grsec and vserver. if grsec
kernel break i can always boot up the server one.

I had a onetime generated extlinux.conf. If i added a kernel I needed
to manually modify extlinux.conf.

The extlinux.conf used vmlinuz-grsec and initramfs-grsec which was
symlinks to latest kernel.

The problem here was that when installing a new kernel there was some
manual work to get it working. So update-extlinux showed up. It parses
the /boot and overwrites extlinux.conf, without taking any backup of
the current.

So if you multiboot, good bye to your custom ubuntu or fedora or windows
boot entry.

Now my laptop is also unbootable so I have disabled the syslinux trigger til 1) we
have figured out how it should be solved, 2) implemtened the solution
with all the factors in consideration (like multi OS booting), 3) have
tested it that it works in most cases.

Any ideas how this should ideally work? How do we provide backup kernel
if kernel upgrade break you box? How do we generate the boot menu and
keep it updated with newer kernels?

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Details
Message ID
<CAML-Udur3s7q13RD_cGV_zUfQvTa35dMhUEz_Eyk2aW9sEbM-Q@mail.gmail.com>
In-Reply-To
<20110803160352.3eb9ebde@ncopa-desktop.nor.wtbts.net> (view parent)
Sender timestamp
1312382656
DKIM signature
missing
Download raw message
Write a Perl script which reads the original config, updates the
relevant lines, and spits out the new config while leaving the old one
as a backup, perhaps.

On Wed, Aug 3, 2011 at 10:03, Natanael Copa <ncopa@alpinelinux.org> wrote:
> On Wed, 3 Aug 2011 15:53:09 +0200
> Natanael Copa <ncopa@alpinelinux.org> wrote:
>
>>
>> Now my laptop is also unbootable so I have disabled the syslinux
>> trigger
>
> I just realized that this will break all current boxes too... because
> all current extlinux.conf has the full path instead of the
> vmlinuz-grsec symlink.
>
> And I am short on time for fixing it. ARGH!
>
> Please! How do we get out of this mess? We need something that works
> *NOW* - before people upgrades to the kernel I just pushed...
>
>
> -nc
>
>
> ---
> Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> Help:         alpine-devel+help@lists.alpinelinux.org
> ---
>
>


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20110803160352.3eb9ebde@ncopa-desktop.nor.wtbts.net>
In-Reply-To
<20110803155309.199dc67e@ncopa-desktop.nor.wtbts.net> (view parent)
Sender timestamp
1312380232
DKIM signature
missing
Download raw message
On Wed, 3 Aug 2011 15:53:09 +0200
Natanael Copa <ncopa@alpinelinux.org> wrote:

> 
> Now my laptop is also unbootable so I have disabled the syslinux
> trigger 

I just realized that this will break all current boxes too... because
all current extlinux.conf has the full path instead of the
vmlinuz-grsec symlink.

And I am short on time for fixing it. ARGH!

Please! How do we get out of this mess? We need something that works
*NOW* - before people upgrades to the kernel I just pushed...


-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20110803171502.073e4fc8@ncopa-desktop.nor.wtbts.net>
In-Reply-To
<20110803160352.3eb9ebde@ncopa-desktop.nor.wtbts.net> (view parent)
Sender timestamp
1312384502
DKIM signature
missing
Download raw message
On Wed, 3 Aug 2011 16:03:52 +0200
Natanael Copa <ncopa@alpinelinux.org> wrote:

> On Wed, 3 Aug 2011 15:53:09 +0200
> Natanael Copa <ncopa@alpinelinux.org> wrote:
> 
> > 
> > Now my laptop is also unbootable so I have disabled the syslinux
> > trigger 
> 
> I just realized that this will break all current boxes too... because
> all current extlinux.conf has the full path instead of the
> vmlinuz-grsec symlink.
> 
> And I am short on time for fixing it. ARGH!
> 
> Please! How do we get out of this mess? We need something that works
> *NOW* - before people upgrades to the kernel I just pushed...

Sorry if i sounded harsh. Just got a bit strerssed up.

I think the proper way is to fix update-extlinux, which after
reading the sources, is indeed a very nice tool.

I think we also want some upgrade scripts and try to import the
alpine-2.2 generated + manual stuff. I think we could try parse the
current extlinux.conf and fish out the interesting parts
to  /etc/update-extlinux.d/ where we put the rest of the local
customizations.

And i think we should rename /etc/extlinux.conf
to /etc/update-extlinux.conf

I think I will have a little time to look at it tonight.

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20110803191131.451775cf@alpinelinux.org>
In-Reply-To
<CAML-Udur3s7q13RD_cGV_zUfQvTa35dMhUEz_Eyk2aW9sEbM-Q@mail.gmail.com> (view parent)
Sender timestamp
1312391491
DKIM signature
missing
Download raw message
On Wed, 3 Aug 2011 10:44:16 -0400
Kiyoshi Aman <kiyoshi.aman@gmail.com> wrote:

> Write a Perl script which reads the original config, updates the
> relevant lines, and spits out the new config while leaving the old one
> as a backup, perhaps.

Yes that approx what I'll do, except for the perl part.

I'll create an upgrade script that will check if current extlinux.conf
is generated, and if not, it will try parse the important stuff like
modules=... and pax_nouderef and modify /etc/update-extlinux.conf with
this info.

And update-extlinux will keep a backup of previous generation. 

Thanks!

> 
> On Wed, Aug 3, 2011 at 10:03, Natanael Copa <ncopa@alpinelinux.org>
> wrote:
> > On Wed, 3 Aug 2011 15:53:09 +0200
> > Natanael Copa <ncopa@alpinelinux.org> wrote:
> >
> >>
> >> Now my laptop is also unbootable so I have disabled the syslinux
> >> trigger
> >
> > I just realized that this will break all current boxes too...
> > because all current extlinux.conf has the full path instead of the
> > vmlinuz-grsec symlink.
> >
> > And I am short on time for fixing it. ARGH!
> >
> > Please! How do we get out of this mess? We need something that works
> > *NOW* - before people upgrades to the kernel I just pushed...
> >
> >
> > -nc
> >
> >
> > ---
> > Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> > Help:         alpine-devel+help@lists.alpinelinux.org
> > ---
> >
> >



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)