You are not logged in.
Pages: 1
Today there I Upgraded linux (3.19.3-1 -> 3.19.3-3).
I usually just boot the new kernel without giving it a 2nd thought but today I thought, "What the heck. Let me boot the older kernel." (I'm just weird that way.)
On Debian I would have a choice of which kernel to boot. I used Debian Sid for quite a while.
On Arch,it appears that option is not available.
Now if something had been amiss with the new kernel, for whatever reason and there isn't, you don't have the option of choosing the prior kernel.
Is there a way to have more than one kernel available at boot-time?
Is there a way to NOT REPLACE the older kernel with the upgraded one?
If this is a dumb question, please feel free to hammer my butt.
Offline
If this is a dumb question, please feel free to hammer my butt.
Not a dumb question, but you could have researched if it was asked before.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Thanks for the quick reply, REALLY QUICK.
I will check out the link you provided.
Thanks again Alad.
I did a lookup in the forum under Multiple kernels and only 1 came up and that was in regards to initramfs as I recall.
Google was of no help either.
(Edit)
This kernel update is working well. In a quandry now as to whether or not to update the next kernel version.
Last edited by herbie643 (2015-04-08 17:40:30)
Offline
Yes, you can have multiple kernels. Upgrading a kernel using pacman does remove the modules for the old kernel, and the name of the kernel in the boot partition does not change -- the old kernel is overwritten. The standard way to back a 'bad' kernel out is to boot the install media and chroot into the system.
That said, there are probably several ways to accomplish what you need. You build your kernel yourself and install it as a different name.
You could also (hack alert -- not generally recommended) Archive the module directory, the initrd image and the kernel, update the kernel, put the module directory back, and copy the old kernel and initrd image to the boot partition under different names. You have to adjust the configuration of your boot loader to add new entries for the old kernel and initrd.
A better solution might be to install the linux-lts (long term support) kernel. It can exist along side the mainline kernel. Add it to your boot configuration so you can select lts or mainline at boot. That way, if your system goes "Tango Uniform"[1] after a kernel update, you can boot from the lts kernel.
[1] Teats Up
Edit: Dang Alad is fast. I had never seen the article they linked.
Last edited by ewaller (2015-04-08 17:45:04)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I just installed the linux-lts 3.14.37-1 kernel. I checked the boot directory and now have the option at boot-time.
Thanks ewaller. Appreciate the quick responses to my question.
Seems strange that the issue was first mentioned about 6yrs ago as a bug.
In this instance, and pretty much this instance only, Arch is not for the 'noob' if something like I mentioned happens.
I suspect that they might freak-out... lol
Offline
Seems strange that the issue was first mentioned about 6yrs ago as a bug.
It's not a bug, it has been filed as a feature request.
Offline
Is there a way to reorder or prioritize kernels in EFI Grub? I have to go to more options, and then I can choose linux-git, linux or linux-lts since I have three installed.
"Melody reigns supreme!"
-J. J. Johnson
Offline
I'm using neither grub not efi, but isn't there a way of setting a default?
Do you need to switch them often?
Offline
The default after installing linux-lts is linux-lts. I want this to be the backup, not the default.
"Melody reigns supreme!"
-J. J. Johnson
Offline
The default after installing linux-lts is linux-lts. I want this to be the backup, not the default.
Have you read the GRUB article in the wiki? Searched the web for "how to change GRUB default"? What have you tried?
Last edited by 2ManyDogs (2015-04-30 22:42:00)
Offline
I know that I can set GRUB_DEFAULT=1 or a different value, but the option to select a different kernel is deeper in the menu. I have to go down to advanced options and press enter and then I am presented with the options of linux or linux-lts.
"Melody reigns supreme!"
-J. J. Johnson
Offline
I found all that I needed here!
https://wiki.archlinux.org/index.php/GR … le_entries
EDIT:
Just an FYI I found out that setting
GRUB_DEFAULT=saveddid not work in my case, perhaps because the setting I needed resides in a sub-menu, so I tried setting
GRUB_DEFAULT='Arch Linux, with Linux linux'and got this message when updating grub...
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background: /boot/grub/dark_linux_custom_arch_linux_d_2560x1440_miscellaneoushi.com.jpg
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Warning: Please don't use old title `Arch Linux, with Linux linux' for GRUB_DEFAULT, use `Advanced options for Arch Linux>Arch Linux, with Linux linux' (for versions before 2.00) or `gnulinux-advanced-6694029a-1c65-4a5d-ab68-0c4157209a2e>gnulinux-linux-advanced-6694029a-1c65-4a5d-ab68-0c4157209a2e' (for 2.00 or later)
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
doneLast edited by HarlemSquirrel (2015-04-30 23:24:13)
"Melody reigns supreme!"
-J. J. Johnson
Offline
Pages: 1