You are not logged in.

#1 2006-04-25 18:58:05

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

why is there only one kernel by default?

i just noticed this when trying out ubuntu.  every time you upgrade or install a new kernel, they create a completely new initrd image, config file, and kernel image, and store them in /boot.  so...in the event that a new kernel screws up, you can always roll back to an older kernel.

why doesn't arch do something like this?

Offline

#2 2006-04-25 19:29:40

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: why is there only one kernel by default?

as kernel26 pkgs are stable, any potential errors would be warned of at install

Offline

#3 2006-04-26 02:06:46

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

mpie wrote:

as kernel26 pkgs are stable, any potential errors would be warned of at install

some messages may be displayed, but the kernel will still be updated regardless.  if you happened to wait a long time to -Syu you might not even see the kernel warning mesage when it's upgrading the package (speakin of which, is there a log file that contains these messages?)

Offline

#4 2006-04-26 02:08:07

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: why is there only one kernel by default?

mpie wrote:

as kernel26 pkgs are stable, any potential errors would be warned of at install

An "error" (this is a little vague) would not be the only thing to protect against when installing a new kernel. There is also the potential threat that configuration changes or the introduction of new features might cause issues with either local hardware, or required daemons and modules. How stable a particular kernel is may not take into account these type of events.


/path/to/Truth

Offline

#5 2006-04-26 03:36:20

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: why is there only one kernel by default?

Bah, I've made my share of mistakes after a kernel upgrade (not getting the correct ipw2200 firmware for instance) and it sucks to have to recover manually.  If nothing else, having at least one backup (recovery) kernel would be nice.

Offline

#6 2006-04-26 06:25:45

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: why is there only one kernel by default?

We are arch! So you should know how to do it yourself if you really want it.

And there are other kernel packages in the repo: kernel24, kernel26beyond, mm, archck.... Not enough for a rescue? Arch iso cd is good for rescue too ;-)

Offline

#7 2006-04-26 13:16:56

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: why is there only one kernel by default?

hypermegachi, there are a variety of methods to rescue your system or install different kernels via pacman. However, to get back to your original question, what you are talking about is a feature that is not currently implemented, and while this could be due to a variety of reasons, it probably has a lot to do with the philosophy of Arch, which is that the user should be afforded with a greater role in managing their system than with some other distros.

You can always make a feature request at flyspray.


/path/to/Truth

Offline

#8 2006-04-26 13:31:10

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,488

Re: why is there only one kernel by default?

McQueen, I can't follow your arguments. If managing your own system had such a weight, then udev and hotplug, initrd and one kernel for all, hardwaredetection and hwd would break the rule, wouldn't it.

I'ld file a feature request, so a kernel update would keep the older kernel as a fallback in case of errors.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#9 2006-04-26 14:20:56

Bison
Member
From: Jacksonville, FL
Registered: 2006-04-12
Posts: 158
Website

Re: why is there only one kernel by default?

It isn't hard to rename your kernel before updating.  As for the Ubuntu feature, i found that really annoying.

Offline

#10 2006-04-26 15:56:21

myst
Member
From: Brest, Belarus
Registered: 2006-01-30
Posts: 54

Re: why is there only one kernel by default?

Moo-Crumpus wrote:

McQueen, I can't follow your arguments. If managing your own system had such a weight, then udev and hotplug, initrd and one kernel for all, hardwaredetection and hwd would break the rule, wouldn't it.

I'ld file a feature request, so a kernel update would keep the older kernel as a fallback in case of errors.

Hmm... how to upgrade package then? Should the new kernel always installed as new package? If not, how to keep track of all that trash that will be after several kernel updates?

Offline

#11 2006-04-26 17:13:30

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

i realize that arch is a more "do it yourself" kinda distro, but i don't think it should even be necessary to "whip out that live CD" to save your computer after an unexpected problem from upgrading the kernel.

i know there are probably a lot of users here who add kernel26 to the IgnorePkg list, for fear of breaking the system.  of course, if each kernel upgrade is its own package, they could try out the new kernel pretty much without worry of screwing things up.

also, with symlinks it's pretty easy to default the grub entry to the latest version.  if for some reason the new kernel doesn't work, you can still use grub and manually edit the boot entry prior to booting.

Offline

#12 2006-04-26 17:15:06

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

myst wrote:

Hmm... how to upgrade package then? Should the new kernel always installed as new package? If not, how to keep track of all that trash that will be after several kernel updates?

pacman?

Offline

#13 2006-04-26 17:37:17

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: why is there only one kernel by default?

A simple solution to this problem would be to add a postfix to the kernel names, initrd, etc to make sure that no files conflicted. This could be done from within the PKGBUILD. Give the package a custom name and it should work just fine.

Offline

#14 2006-04-26 17:54:03

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,488

Re: why is there only one kernel by default?

Would we really need a custom package name? Couldn't we just move kernel26,  System.map26 etc. to kernel26_previous, System.map26_previous etc in pre-install? Users could add a menu entry in grub / lilo and would just be able to boot the latest and the last kernel. This is what I did manually (before I had initrd and so on).


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#15 2006-04-26 20:07:05

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

Moo-Crumpus wrote:

Would we really need a custom package name? Couldn't we just move kernel26,  System.map26 etc. to kernel26_previous, System.map26_previous etc in pre-install? Users could add a menu entry in grub / lilo and would just be able to boot the latest and the last kernel. This is what I did manually (before I had initrd and so on).

i think if a fallback kernel would be implemented, this suggestion would be easiest and painless to do.  you could even make a new directory under /boot/oldkernels or something, and the user can just rmdir that whenever they want.  it won't clutter /boot at all.

Offline

#16 2006-04-26 22:01:49

vidal
Member
Registered: 2006-04-03
Posts: 12

Re: why is there only one kernel by default?

What will you do if upgrading some other package renders your system unbootable?

Offline

#17 2006-04-26 22:25:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: why is there only one kernel by default?

Moo-Crumpus wrote:

McQueen, I can't follow your arguments. If managing your own system had such a weight, then udev and hotplug, initrd and one kernel for all, hardwaredetection and hwd would break the rule, wouldn't it.

That's untrue.  Doing something automatically does not imply that it removes control from a user.  If it did, then there would be no rc.d scripts, you would have to put everything in rc.local.  Hardware detection is the same - you have the option of not using it.

There is not a single app you can name that does not do something automatically.  How would you like it if firefox failed on first start with "no profile directory, please create it first" or if your IDE controller modules failed saying "hey, I found some drives, but you didn't specify names for them when loading me - too bad, failing....".

Offline

#18 2006-04-26 22:31:09

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: why is there only one kernel by default?

The most important point to note here is that no one _reads_.

There is alot of information spit off by the kernel install, just so you don't run into problems like this.  But everyone ignores it.  I have an idea.... _read it_

In this very thread someone even stated "oh sometimes you miss install messages" - that's not my fault or anyone elses.  It is yours and yours alone for not reading.

Do you really want Arch packages to start taking care of the people who don't "RTFM" ?

Offline

#19 2006-04-26 23:09:55

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

what happens when it scrolls so fast you can't read it?  if you're on a 320x240 terminal or something outside of X, you won't have an option of scrolling back to read those messages.

speaking of which, why doesn't pacman.log have messages from package upgrades?  do those messages even get logged?

Offline

#20 2006-04-27 00:33:44

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: why is there only one kernel by default?

hypermegachi wrote:

what happens when it scrolls so fast you can't read it?  if you're on a 320x240 terminal or something outside of X, you won't have an option of scrolling back to read those messages.

try SHIFT + page up

Offline

#21 2006-04-27 00:50:05

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: why is there only one kernel by default?

Penguin wrote:
hypermegachi wrote:

what happens when it scrolls so fast you can't read it?  if you're on a 320x240 terminal or something outside of X, you won't have an option of scrolling back to read those messages.

try SHIFT + page up

very cool!  thanks for the tip!

Offline

#22 2006-04-27 08:39:58

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: why is there only one kernel by default?

or /var/log/pacman.log

Offline

#23 2006-04-27 08:42:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: why is there only one kernel by default?

The log does not record post-install messages.

Offline

#24 2006-04-27 13:31:03

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: why is there only one kernel by default?

How about looking at this from the other way around?  Bang together a script that moves kernel26 to kernel26-safe, and run it once you're satisfied a new kernel isn't going to eat your brain.  Have a grub entry that boots this kernel by default rather than arch's new kernel.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#25 2006-04-27 13:57:25

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: why is there only one kernel by default?

If you are afraid of kernel update, you can add in /etc/pacman.conf

NoUpgrade=/boot/vmlinuz26

So that it will create a /boot/vmlinuz26.pacnew next time you update your kernel smile

Offline

Board footer

Powered by FluxBB