You are not logged in.

#1 2011-05-05 11:12:15

dejavu
Member
Registered: 2008-05-26
Posts: 103

Fallback kernel

Hey,

I just want to know if anyone of you uses sometimes or needs the fallback kernel image?!
If I really need to repair my system then I repair it with a live CD or usb stick...

It would be nice if we could disable generating this in the /etc/mkinitcpio.conf file.

What do you think?

Offline

#2 2011-05-05 11:27:55

jeslinmx
Member
Registered: 2010-11-20
Posts: 120

Re: Fallback kernel

It's probably compiled a little differently and acts as a spare for when you are compiling your own kernel. If you are not trying stuff like that it's probably okay to disable it. Don't expect it as default though; it's not a smart default for Arch users.


Lenovo Y450 + Arch x86_64 dual boot with Windows 7 + Openbox standalone + Arch default kernel + Nouveau + yours truly = A lot of *****in' in the Arch Forums.

Offline

#3 2011-05-05 12:31:34

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Fallback kernel

If you want to disable it, you'll need to alter the preset file that comes packed with the kernel26 package (/etc/mkinitcpio.d/kernel26.preset). Of course, altering that file means installing the package first, which means generating both images... I don't see what harm it causes -- 5mb on your /boot partition for something that might save you from having to chroot seems like a win to me.

@jeslinmx: I think you're misunderstanding what the fallback image is... its not a kernel at all.

Offline

#4 2011-05-05 12:47:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fallback kernel

falconindy wrote:

@jeslinmx: I think you're misunderstanding what the fallback image is... its not a kernel at all.

[OT]
This name leads to many misunderstandings, can we call it another way or is it customary to say 'kernel image'?
[/OT]

Another Archer wanted to boot faster, so he wished to disable the fallback image. It's your system, do what you want.

Offline

#5 2011-05-05 13:26:08

jeslinmx
Member
Registered: 2010-11-20
Posts: 120

Re: Fallback kernel

It's a compressed ramdisk thing to bootstrap the system enough to go into kernel spaceish right?


Lenovo Y450 + Arch x86_64 dual boot with Windows 7 + Openbox standalone + Arch default kernel + Nouveau + yours truly = A lot of *****in' in the Arch Forums.

Offline

#6 2011-05-05 13:27:32

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: Fallback kernel

Compared to the default, the fallback initramfs image contains additional modules/drivers because the autodetect hook is not run during its creation. This means it is a generic image -- it can be used to boot your system after hardware changes, or if you transfer your hard drive to another computer. In contrast, the default image is tailored to your specific machine at the time of creation.

See the mkinitcpio ArchWiki page for more information.


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#7 2011-05-05 13:28:44

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Fallback kernel

To be precise, it's a (compressed) cpio archive, the contents of which become your initramfs. It's only tied to a specific kernel if modules are involved, and it's extremely unfortunate that the word 'kernel' ended up in the name. Other than any "shock" factor involved, it wouldn't be hard to change the name of this file given that its completely controllable within the kernel26 package.

Offline

#8 2011-05-05 13:41:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fallback kernel

falconindy wrote:

To be precise, it's a (compressed) cpio archive, the contents of which become your initramfs. It's only tied to a specific kernel if modules are involved, and it's extremely unfortunate that the word 'kernel' ended up in the name. Other than any "shock" factor involved, it wouldn't be hard to change the name of this file given that its completely controllable within the kernel26 package.

linux-api-headers package underwent a similar namechnage:
https://bbs.archlinux.org/viewtopic.php … 90#p697190
https://bbs.archlinux.org/viewtopic.php … 34#p697434

I will file a feature request in the weekend. Unless somebody beats me to it ;P

Last edited by karol (2011-05-05 13:44:54)

Offline

#9 2011-05-05 13:44:47

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Fallback kernel

Truth, although changing the name of the boot image would require user intervention to change their bootloaders... perhaps not zero impact, but I think it's a worthy change. I might be doing something about that myself...

Offline

#10 2011-05-07 20:58:08

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Fallback kernel

I most often just comment it out in grubs menu.lst, though i might be sorry about that someday.
But then i guess i could try to remeber the grub-lines that booted into it.

Leraning about it's intended use as a fallback if hardware changes, might make it a neat thing to just comment it back before a swtich then smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#11 2011-05-07 21:39:07

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Fallback kernel

It's saved me already when for some reason my normal image would not boot. There are no guarantees but I've been in the situation before where my normal image wouldn't boot but I could continue working with the fallback image until I found the time to fix the problem. You're really glad the fallback image exists then smile

Offline

#12 2011-05-08 02:36:46

ljshap
Member
From: Ossining, NY
Registered: 2008-01-23
Posts: 160

Re: Fallback kernel

Ramses de Norre wrote:

It's saved me already when for some reason my normal image would not boot. There are no guarantees but I've been in the situation before where my normal image wouldn't boot but I could continue working with the fallback image until I found the time to fix the problem. You're really glad the fallback image exists then smile


I had the same problem after installing Ubuntu as a second linux partion on my netbook.  After installing Ubuntu (which installed grub2 without "asking") I was not able to boot into Arch using the regular image file.  Fortunately, the fallback image did  boot into Arch after which I able to reinstall grub to point to my Arch boot partitiion.  I still could not boot into Arch with the regular image file until I ran mkinitcpio to create a new image file.

You may not need the fallback image that often (if ever), but it does come in handy when you need it.  Considering how much wasted storage bloat we have these days, not having a fallback image is not a prudent way to save a few bytes.


Live Free or Die !

Offline

#13 2011-05-09 08:27:59

dejavu
Member
Registered: 2008-05-26
Posts: 103

Re: Fallback kernel

Thanks for your answer...
I just thought of it, because lastly I have played a lot with the hooks and have every time seen the fallback stuff "compiling / generating". ;-)

Fortunately this thread became the placeholder for a different discussion and so it wasn't senseless. ;-)

So I will simply leave the fallback thing as it is.

Best Regards

Offline

#14 2011-05-09 20:41:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fallback kernel

Just FYI there already is a bug report [kernel26] "kernel26.img" is a silly name for an initramfs image. It's still open but not much going on.


Note to self: always search first

Offline

#15 2011-05-10 07:16:36

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Fallback kernel

I would suggest something like initramfs26 and initramfs26-fallback (or initramfs26-mainline-fallback for kernel26-mainline for example). But how will this work out in case http://bugs.archlinux.org/task/16702 (Versioned kernel installs) is accepted.

PS: Posted the same in the bug report karol linked above.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#16 2011-05-10 14:09:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fallback kernel

skodabenz wrote:

I would suggest something like initramfs26 and initramfs26-fallback (or initramfs26-mainline-fallback for kernel26-mainline for example). But how will this work out in case http://bugs.archlinux.org/task/16702 (Versioned kernel installs) is accepted.

The versioned kernel task doesn't get much attention so I wouldn't hold my breath ...

Offline

#17 2011-05-10 20:30:46

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Fallback kernel

I've been using arch for about 2 years, and linux in general for about 7 years. I've never had to use the fallback image, if something screws up I always go straight to a live cd since most of the time its not a module problem.

Offline

Board footer

Powered by FluxBB