You are not logged in.
Pages: 1
How do I keep one or preferably 2 previous kernels and have them as an option during boot up time ? I had an issue during a system upgrade and couldn't boot. I couldn't find a previous one under advance options. I fixed my system by booting into arch install, chroot and did a upgrade but would like to have an option to use alternate kernels.
Last edited by vikramr (2023-08-20 21:34:23)
Offline
Write a pre-transaction hook that moves the relevant module dirs and vmlinuz-linux images to a new name, generates a new mkinitcpio.preset and then have something that sporadically/on boot/on kernel update removes older versions.
Not impossible but not exactly trivial, the simpler and easier approach would be to install an alternate kernel outright (e.g. linux-lts, linux-zen) potentially adding those to IgnorePkg and manually updating them sporadically so you have an older version to fall back on in case the main update goes awry.
Offline
@V1del: It sounds like you're describing exactly what kernel-modules-hook in the extra repo does.
Offline
You'd have to expand that to still keep an initramfs you can actually boot into but one could use that as a base for that yes.
Offline
thanks. Looks like linux-lts is what I need.
Last edited by vikramr (2023-08-20 21:33:35)
Offline
Pages: 1