[arch-general] LTS Kernels
Hello, I have been thinking about instslling an LTS kernel, but I don't have the skills to make complete sense of the wiki pages about grub and kernel installation. I have 4.1.15 installed now and not so many GUI programs installed beside Libre Office, web browser... mostly CLI utilities. But I wonder if I can install an LTS kernel in an already existing installation as a fallback? The wiki sounds fairly straight forward, but I get lost where it says "install kernel" without saying how, and to "edit the grub config file" without an explanation, and to "generate the main configuration file". Not sure whether I am getting in way over my head or if it is actually quite simple. That's what I need to know. Thanks, David – Skickat från Mailbox
On Sat, Aug 22, 2015 at 4:30 PM, <bildermejl76@gmail.com> wrote:
Hello,
I have been thinking about instslling an LTS kernel, but I don't have the skills to make complete sense of the wiki pages about grub and kernel installation.
I have 4.1.15 installed now and not so many GUI programs installed beside Libre Office, web browser... mostly CLI utilities.
But I wonder if I can install an LTS kernel in an already existing installation as a fallback?
You can install an LTS kernel along with an existing kernel.
The wiki sounds fairly straight forward, but I get lost where it says "install kernel" without saying how, and to "edit the grub config file" without an explanation, and to "generate the main configuration file".
install kernel: pacman -S linux-lts
edit grub config file: grub-mkconfig -o /boot/grub/grub.cfg
Not sure whether I am getting in way over my head or if it is actually quite simple. That's what I need to know.
Thanks, David
– Skickat från Mailbox
On 08/22/2015 03:54 AM, Iru Cai wrote:
install kernel: pacman -S linux-lts edit grub config file: grub-mkconfig -o /boot/grub/grub.cfg
Iru, I didn't completely understand what if any edit needs to be made in any of the /etc/grub.d/XX_files to have the LTS entry listed in the boot menu. The following in 10_linux: machine=`uname -m` case "x$machine" in xi?86 | xx86_64) list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done` ;; *) list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done` ;; esac indicates that whatever 'vmlinuz-*' files found should automatically be included in the grub list by grub-mkconfig. In the case of the normal kernel and lts, then it would find both: vmlinuz-linux vmlinuz-linux-lts So what new lines are needed in the config files before just running: # grub-mkconfig -o /boot/grub/grub.cfg ? -- David C. Rankin, J.D.,P.E.
David, No changes are necessary in any of the /etc/grub.d files. the LTS kernel will be found automatically when running grub-mkconfig. Cheers, Patrick
On Sat, 22 Aug 2015 01:30:56 -0700 (PDT), bildermejl76@gmail.com wrote:
The wiki sounds fairly straight forward, but I get lost where it says "install kernel" without saying how
Really? sudo pacman -Syu linux-lts
and to "edit the grub config file" without an explanation, and to "generate the main configuration file".
sudo nano /boot/grub/grub.cfg Then copy the entry from the "default" kernel and edit it to fit to the LTS kernel. Just take a look at it and you'll see it's self-explaining. However, AFAIK there are also update commands for GRUB, using some OS prober thingy to generate an updated grub.cfg. Did you take a look at the grub man page? Maybe installing the kernel automatically updates grub.cfg? I'm using GRUB too, but it's not part of my Arch install, it's a stand-alone GRUB and I anyway prefer to manually edit grub.cfg. Regarding a FreeBSD install I decided to use GRUB2. Using another bootloader doesn't harm, if you shouldn't really need GRUB.
On 22-08-15 10:30, bildermejl76@gmail.com wrote:
But I wonder if I can install an LTS kernel in an already existing installation as a fallback?
Yes, that's not very hard and a good idea.
The wiki sounds fairly straight forward, but I get lost where it says "install kernel" without saying how, and to "edit the grub config file" without an explanation, and to "generate the main configuration file".
Not sure whether I am getting in way over my head or if it is actually quite simple. That's what I need to know. If you use kernel modules that are not part of the stock kernel (like nvidia , catalyst, vhba-modules ) additonal steps are needed.
For now i'll assume you don't have such modules. - Almost every time an arch wiki page states "install program" , it means one of 2 things : install with pacman install from AUR with makepkg The lts kernel is in official repos, so you can install it with pacman. - to be able to boot the lts-kernel , you have to add an entry to your bootloader config for it. Grub stores that info in grub.cfg , grub page lists where it can be found. As Root : copy grub.cfg to something like grub.cfg.original open the file with your fav tekst editor. Copy the entry for arch stock kernel to a new entry and change what is needed to have that boot the lts-kernel instead of the stock kernel. Reboot and test if it works. LW
On Sat, Aug 22, 2015 at 10:30 AM, <bildermejl76@gmail.com> wrote:
The wiki sounds fairly straight forward, but I get lost where it says "install kernel" without saying how, and to "edit the grub config file" without an explanation, and to "generate the main configuration file".
What wiki article? https://wiki.archlinux.org/index.php/Enhance_system_stability#Install_the_li... provides links to e.g. https://wiki.archlinux.org/index.php/GRUB#Generate_the_main_configuration_fi... What about https://wiki.archlinux.org/index.php/Kernels ?
participants (7)
-
bildermejl76@gmail.com
-
David C. Rankin
-
Iru Cai
-
Karol Blazewicz
-
LoneVVolf
-
Patrick Helfenstein
-
Ralf Mardorf